basic calls for logging

pull/135/head
Simon Stürz 2016-04-20 14:34:34 +02:00 committed by Michael Zanetti
parent 3b639cb0e1
commit 9a3390b5d6
2 changed files with 12 additions and 1 deletions

View File

@ -23,6 +23,7 @@
#include "guhcore.h"
#include "devicemanager.h"
#include "guhsettings.h"
#include "logging/logentry.h"
#include "plugin/deviceplugin.h"
#include <QDebug>
@ -42,6 +43,8 @@ private:
private slots:
void initLogs();
void coverageCalls();
void systemLogs();
void invalidFilter_data();
@ -76,6 +79,15 @@ void TestLogging::initLogs()
restartServer();
}
void TestLogging::coverageCalls()
{
LogEntry entry(QDateTime::currentDateTime(), Logging::LoggingLevelInfo, Logging::LoggingSourceSystem);
qDebug() << entry;
LogFilter filter;
qDebug() << filter.timeFilters();
}
void TestLogging::systemLogs()
{
// check the active system log at boot

View File

@ -238,7 +238,6 @@ void TestRestRules::findRule()
request.setUrl(QUrl(QString("http://localhost:3333/api/v1/rules/%1").arg(ruleId.toString())));
response = getAndWait(request, 404);
QVERIFY(!response.isNull());
}
void TestRestRules::invalidMethod()