kdecore: log debug message before and after the call in KAuthorization::execute()

otherwise it is bombardment of messages if the KAuthorization area is enabled

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-09-08 06:23:50 +03:00
parent 8cb49b86db
commit 8d3250d896

View file

@ -161,10 +161,11 @@ int KAuthorization::execute(const QString &helper, const QString &method, const
QDBusConnection::systemBus()
);
QDBusPendingReply<int> reply = kauthorizationinterface.asyncCall(QString::fromLatin1("execute"), method, arguments);
kDebug(s_kauthorizationarea) << "Waiting for service call to finish" << helper;
while (!reply.isFinished()) {
kDebug(s_kauthorizationarea) << "Waiting for service call to finish" << helper;
QCoreApplication::processEvents(QEventLoop::AllEvents, KAUTHORIZATION_TIMEOUT);
}
kDebug(s_kauthorizationarea) << "Done waiting for service call to finish" << helper;
int result = KAuthorization::NoError;
if (!reply.isValid()) {
result = KAuthorization::DBusError;