From 9682f69a3af3c3719050d342b07899f69a7ccbc5 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Mon, 25 Jul 2022 11:26:27 +0200 Subject: [PATCH] Improve a debug print when internal counters are re-synced --- plugin/energymanagerimpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/energymanagerimpl.cpp b/plugin/energymanagerimpl.cpp index 1f3c1bc..87ec0e1 100644 --- a/plugin/energymanagerimpl.cpp +++ b/plugin/energymanagerimpl.cpp @@ -173,7 +173,7 @@ void EnergyManagerImpl::watchThing(Thing *thing) } // If the thing's meter has been reset in the meantime (newConsumption < oldConsumption) we'll sync down, taking the whole diff from 0 to new value if (newThingConsumptionState < oldThingConsumptionState) { - qCInfo(dcEnergyExperience()) << "Thing meter for" << thing->name() << "seems to have been reset. Re-synching internal consumption counter."; + qCInfo(dcEnergyExperience()).nospace() << "Thing meter for " << thing->name() << " seems to have been reset. Old value: " << oldThingConsumptionState << " New value: " << newThingConsumptionState << ". Re-synching internal consumption counter."; oldThingConsumptionState = newThingConsumptionState; } double consumptionDiff = newThingConsumptionState - oldThingConsumptionState;