From 46e6232021cf8b2a530d7de1499f25f9e8beb286 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Sun, 24 Dec 2023 12:54:05 +0100 Subject: [PATCH] Enable logging for signal strength by default Since the new log engine this isn't that heavy on the resources any more --- libnymea/interfaces/wirelessconnectable.json | 3 ++- tests/auto/logging/testlogging.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libnymea/interfaces/wirelessconnectable.json b/libnymea/interfaces/wirelessconnectable.json index 16bbbe42..82a58e68 100644 --- a/libnymea/interfaces/wirelessconnectable.json +++ b/libnymea/interfaces/wirelessconnectable.json @@ -8,7 +8,8 @@ "unit": "Percentage", "minValue": 0, "maxValue": 100, - "optional": true + "optional": true, + "logged": true } ] } diff --git a/tests/auto/logging/testlogging.cpp b/tests/auto/logging/testlogging.cpp index 037319c3..f01956e3 100644 --- a/tests/auto/logging/testlogging.cpp +++ b/tests/auto/logging/testlogging.cpp @@ -180,7 +180,7 @@ void TestLogging::stateChangeLogs_data() QTest::addColumn("expectLogEntry"); QTest::newRow("logged state") << mockConnectedStateTypeId << "connected" << QVariant(false) << QVariant(true) << true; - QTest::newRow("not logged state") << mockSignalStrengthStateTypeId << "signalStrength" << QVariant(10) << QVariant(20) << false; + QTest::newRow("not logged state") << mockDoubleStateTypeId << "double" << QVariant(10) << QVariant(20) << false; } void TestLogging::stateChangeLogs()