From 3b2c865566aea43ab21afadcd34f58db0a5d5ab8 Mon Sep 17 00:00:00 2001 From: Daniel Teichmann Date: Tue, 6 Jul 2021 20:25:45 +0200 Subject: DBusAPI: Change critical error to qCritical instead of qDebug. --- src/DBusAPI.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/DBusAPI.cpp b/src/DBusAPI.cpp index c133910..7f14e4f 100644 --- a/src/DBusAPI.cpp +++ b/src/DBusAPI.cpp @@ -77,8 +77,8 @@ void DBusAPI::start_reply(QDBusPendingCallWatcher *call) { QString result = ""; QDBusPendingReply reply = *call; if (reply.isError()) { - qDebug() << "D-Bus 'start' request failed, this was the reply:"; - qDebug() << reply.error(); + qCritical() << "D-Bus 'start' request failed, this was the reply:"; + qCritical() << reply.error(); emit serviceStartResponse(nullptr); return; @@ -135,8 +135,8 @@ void DBusAPI::stop_reply(QDBusPendingCallWatcher *call) { QDBusPendingReply reply = *call; if (reply.isError()) { - qDebug() << "D-Bus 'stop' request failed, this was the reply:"; - qDebug() << reply.error(); + qCritical() << "D-Bus 'stop' request failed, this was the reply:"; + qCritical() << reply.error(); emit serviceStopResponse(nullptr); } else { @@ -218,8 +218,8 @@ void DBusAPI::status_reply(QDBusPendingCallWatcher *call){ QDBusPendingReply reply = *call; if (reply.isError()) { - qDebug() << "D-Bus '(refresh_)status' request failed, this was the reply:"; - qDebug() << reply.error(); + qCritical() << "D-Bus '(refresh_)status' request failed, this was the reply:"; + qCritical() << reply.error(); emit serviceStatusResponse(nullptr); return; @@ -300,8 +300,8 @@ void DBusAPI::get_web_app_hosts_reply(QDBusPendingCallWatcher *call){ QDBusPendingReply reply = *call; if (reply.isError()) { - qDebug() << "D-Bus 'get_web_app_hosts' request failed, this was the reply:"; - qDebug() << reply.error(); + qCritical() << "D-Bus 'get_web_app_hosts' request failed, this was the reply:"; + qCritical() << reply.error(); emit serviceGetWebAppHostsResponse(nullptr); return; @@ -329,8 +329,8 @@ void DBusAPI::add_web_app_host_reply(QDBusPendingCallWatcher *call){ QDBusPendingReply reply = *call; if (reply.isError()) { - qDebug() << "D-Bus 'add_web_app_host' request failed, this was the reply:"; - qDebug() << reply.error(); + qCritical() << "D-Bus 'add_web_app_host' request failed, this was the reply:"; + qCritical() << reply.error(); emit serviceAddWebAppHostResponse(nullptr); return; @@ -358,8 +358,8 @@ void DBusAPI::remove_web_app_host_reply(QDBusPendingCallWatcher *call){ QDBusPendingReply reply = *call; if (reply.isError()) { - qDebug() << "D-Bus 'remove_web_app_host' request failed, this was the reply:"; - qDebug() << reply.error(); + qCritical() << "D-Bus 'remove_web_app_host' request failed, this was the reply:"; + qCritical() << reply.error(); emit serviceRemoveWebAppHostResponse(nullptr); return; -- cgit v1.2.3