diff options
author | Robert Griebl <robert.griebl@pelagicore.com> | 2016-12-26 01:38:35 +0100 |
---|---|---|
committer | Dominik Holland <dominik.holland@pelagicore.com> | 2017-01-09 15:48:09 +0000 |
commit | 32ed8df4c465771e0ed323486aafde403560ad6f (patch) | |
tree | 6aed12cbbd260988a907ccd280d62b1f3c2abaa4 /src/manager/main.cpp | |
parent | 6850b57f03be5b1d838597a37c4fd50b4f71b111 (diff) | |
download | qtapplicationmanager-32ed8df4c465771e0ed323486aafde403560ad6f.tar.gz |
Nicer and more consistent debug output during startup
Also add useful information that was not output before.
Change-Id: I4db1219d73e0127fa45d35b3dfa2aece941cd4ae
Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
Diffstat (limited to 'src/manager/main.cpp')
-rw-r--r-- | src/manager/main.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/manager/main.cpp b/src/manager/main.cpp index 155199bc..434c10b6 100644 --- a/src/manager/main.cpp +++ b/src/manager/main.cpp @@ -193,6 +193,8 @@ static void registerDBusObject(QDBusAbstractAdaptor *adaptor, const char *servic .arg(serviceName).arg(dbusName).arg(conn.lastError().message()); } + qCDebug(LogSystem).nospace().noquote() << " * " << serviceName << path << " [on bus: " << dbusName << "]"; + if (interfaceName.startsWith(qL1S("io.qt."))) { // Write the bus address of the interface to a file in /tmp. This is needed for the // controller tool, which does not even have a session bus, when started via ssh. @@ -218,6 +220,8 @@ static void registerDBusObject(QDBusAbstractAdaptor *adaptor, const char *servic static void dbusInitialization() { try { + qCDebug(LogSystem) << "Registering D-Bus services:"; + auto am = ApplicationManager::instance(); auto ama = new ApplicationManagerAdaptor(am); @@ -666,10 +670,9 @@ int main(int argc, char *argv[]) ); } - qCDebug(LogSystem) << "Found Applications: ["; + qCDebug(LogSystem) << "Registering applications:"; foreach (const Application *app, apps) - qCDebug(LogSystem) << " * APP:" << app->id() << "(" << app->baseDir().absolutePath() << ")"; - qCDebug(LogSystem) << "]"; + qCDebug(LogSystem).nospace().noquote() << " * " << app->id() << " [at: " << app->baseDir().path() << "]"; adb->write(apps); } |