diff --git a/libnymea-core/logging/logengine.cpp b/libnymea-core/logging/logengine.cpp index 4927e5a9..173f4be9 100644 --- a/libnymea-core/logging/logengine.cpp +++ b/libnymea-core/logging/logengine.cpp @@ -223,6 +223,7 @@ void LogEngine::clearDatabase() void LogEngine::logSystemEvent(const QDateTime &dateTime, bool active, Logging::LoggingLevel level) { + qCDebug(dcLogEngine()) << "Logging system event:" << active; LogEntry entry(dateTime, level, Logging::LoggingSourceSystem); entry.setEventType(Logging::LoggingEventTypeActiveChange); entry.setActive(active); diff --git a/tests/auto/logging/testlogging.cpp b/tests/auto/logging/testlogging.cpp index f0cc833e..9c9ac62a 100644 --- a/tests/auto/logging/testlogging.cpp +++ b/tests/auto/logging/testlogging.cpp @@ -199,6 +199,7 @@ void TestLogging::systemLogs() qWarning() << "Restarting server"; restartServer(); qWarning() << "Restart done"; + waitForDBSync(); // there should be 2 log entries, one for shutdown, one for startup (from server restart) response = injectAndWait("Logging.GetLogEntries", params);