mirror of https://github.com/nymea/nymea.git
fix tests
parent
386fa12a89
commit
e52b45c815
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue