#17 Logs aufgeräumt

This commit is contained in:
David Zingg
2020-01-16 17:32:39 +01:00
parent 9015fd16de
commit 48c283703d
2 changed files with 12 additions and 10 deletions

View File

@ -87,7 +87,7 @@ class MyStromSwitchPlugin(octoprint.plugin.SettingsPlugin,
intervall = timestamp - self.lastTimeStamp
# Energy in Wh
self.energy = self.energy + (intervall * data["power"] / 3600)
self._logger.info(
self._logger.debug(
"Energy: " + str(self.energy) + " interval: " + str(intervall) + " power: " + str(
data["power"]))
self.lastTimeStamp = timestamp