mirror of https://github.com/nymea/nymea.git
basic calls for logging
parent
3b639cb0e1
commit
9a3390b5d6
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue