2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Format dbus errors logging

This commit is contained in:
Ilya Fedin
2021-01-22 16:07:31 +04:00
committed by John Preston
parent 1e2759840d
commit 690c5df87c
3 changed files with 26 additions and 13 deletions

View File

@@ -104,7 +104,7 @@ QStringList ListDBusActivatableNames() {
if (reply.isValid()) {
return reply.value();
} else if (reply.error().type() != QDBusError::Disconnected) {
LOG(("App Error: %1: %2")
LOG(("ListActivatableNames Error: %1: %2")
.arg(reply.error().name())
.arg(reply.error().message()));
}
@@ -160,7 +160,9 @@ void PortalAutostart(bool autostart, bool silent = false) {
const QDBusError error = QDBusConnection::sessionBus().call(message);
if (error.isValid()) {
LOG(("Flatpak autostart error: %1").arg(error.message()));
LOG(("Flatpak Autostart Error: %1: %2")
.arg(error.name())
.arg(error.message()));
}
}
@@ -218,7 +220,8 @@ uint FileChooserPortalVersion() {
return reply.value().toUInt();
}
LOG(("Error getting FileChooser portal version: %1")
LOG(("Error getting FileChooser portal version: %1: %2")
.arg(reply.error().name())
.arg(reply.error().message()));
return 0;