Commit 67167287 authored by Xaver Hugl's avatar Xaver Hugl Committed by Merge Service
Browse files

LogindSession: adjust warning when openRestricted fails

Part-of: <!2482>
parent 2d563dc6
Pipeline #182988 passed with stage
in 25 minutes and 47 seconds
......@@ -174,13 +174,14 @@ int LogindSession::openRestricted(const QString &fileName)
const QDBusMessage reply = QDBusConnection::systemBus().call(message);
if (reply.type() == QDBusMessage::ErrorMessage) {
qCDebug(KWIN_CORE, "Failed to open %s device (%s)",
qPrintable(fileName), qPrintable(reply.errorMessage()));
qCWarning(KWIN_CORE, "Failed to open %s device (%s)",
qPrintable(fileName), qPrintable(reply.errorMessage()));
return -1;
}
const QDBusUnixFileDescriptor descriptor = reply.arguments().constFirst().value<QDBusUnixFileDescriptor>();
if (!descriptor.isValid()) {
qCWarning(KWIN_CORE, "File descriptor for %s from logind is invalid", qPrintable(fileName));
return -1;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment