From 2ea2e940aca94b935185c0f5e666b883abf31601 Mon Sep 17 00:00:00 2001 From: Bastian Schroll Date: Wed, 10 Jan 2018 12:57:20 +0100 Subject: [PATCH] fix header, edit plugin --- boswatch/plugin/plugin.py | 16 ++++++++-------- boswatch/utils/header.py | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/boswatch/plugin/plugin.py b/boswatch/plugin/plugin.py index 72f3998..ed6a03d 100644 --- a/boswatch/plugin/plugin.py +++ b/boswatch/plugin/plugin.py @@ -52,11 +52,11 @@ class Plugin: self._pluginsActive -= 1 self.onUnload() - logging.debug("[%s] statistics:", self._pluginName) - logging.debug("- runs %d", self._runCount) - logging.debug("- setup errors %d", self._setupErrorCount) - logging.debug("- alarm errors %d", self._alarmErrorCount) - logging.debug("- teardown errors %d", self._teardownErrorCount) + # logging.debug("[%s] statistics:", self._pluginName) + # logging.debug("- runs %d", self._runCount) + # logging.debug("- setup errors %d", self._setupErrorCount) + # logging.debug("- alarm errors %d", self._alarmErrorCount) + # logging.debug("- teardown errors %d", self._teardownErrorCount) def _loadConfig(self): pass @@ -96,9 +96,9 @@ class Plugin: self._endTime = time.time() logging.debug("[%s] took %0.3f seconds", self._pluginName, self._sumTime) - logging.debug("- setup: %0.2f sec.", self._setupTime) - logging.debug("- alarm: %0.2f sec.", self._alarmTime) - logging.debug("- teardown: %0.2f sec.", self._teardownTime) + # logging.debug("- setup: %0.2f sec.", self._setupTime) + # logging.debug("- alarm: %0.2f sec.", self._alarmTime) + # logging.debug("- teardown: %0.2f sec.", self._teardownTime) def _getStatistics(self): """!Returns statistical information's from last plugin run diff --git a/boswatch/utils/header.py b/boswatch/utils/header.py index 31324d1..3fad926 100644 --- a/boswatch/utils/header.py +++ b/boswatch/utils/header.py @@ -47,24 +47,24 @@ def infoToLog(): @return True or False on error""" try: logging.debug("BOSWatch and environment information") - logging.debug("- Client version: %d.%d.%d", + logging.debug("- Client version: %d.%d.%d", boswatch.version.client["major"], boswatch.version.client["minor"], boswatch.version.client["patch"]) - logging.debug("- Server version: %d.%d.%d", + logging.debug("- Server version: %d.%d.%d", boswatch.version.server["major"], boswatch.version.server["minor"], boswatch.version.server["patch"]) - logging.debug("- Branch: %s", + logging.debug("- Branch: %s", boswatch.version.branch) - logging.debug("- Release date: %02d.%02d.%4d", + logging.debug("- Release date: %02d.%02d.%4d", boswatch.version.date["day"], boswatch.version.date["month"], boswatch.version.date["year"]) - logging.debug("- Python version: " + platform.python_version()) - logging.debug("- Python build: " + str(platform.python_build())) - logging.debug("- System: " + platform.system()) - logging.debug("- OS Version: " + platform.platform()) + logging.debug("- Python version: " + platform.python_version()) + logging.debug("- Python build: " + str(platform.python_build())) + logging.debug("- System: " + platform.system()) + logging.debug("- OS Version: " + platform.platform()) logging.debug("") return True except: # pragma: no cover