Commit ba0e1895 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Add a debug message that gets printed if TakeDevice fails

This can be useful while debugging why the TakeDevice request fails.
parent 2aae299e
......@@ -175,6 +175,8 @@ int ConsoleKitSession::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()));
return -1;
}
......
......@@ -181,6 +181,8 @@ 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()));
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