From 83debc08901973935b0a15d46f3368dc417a6098 Mon Sep 17 00:00:00 2001 From: Schrolli Date: Tue, 19 May 2015 09:36:46 +0200 Subject: [PATCH] edit logging in bosmon plugin --- plugin_test/plugins/BosMon/__init__.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugin_test/plugins/BosMon/__init__.py b/plugin_test/plugins/BosMon/__init__.py index 4b0d124..78ecac0 100644 --- a/plugin_test/plugins/BosMon/__init__.py +++ b/plugin_test/plugins/BosMon/__init__.py @@ -23,10 +23,10 @@ def run(typ,freq,data): logging.debug(" - Channel: " +bosmon_channel) if typ == "FMS": - logging.warning("FMS not implemented in BosMon plugin") + logging.warning("FMS not implemented") elif typ == "ZVEI": - logging.warning("ZVEI not implemented in BosMon plugin") + logging.warning("ZVEI not implemented") elif typ == "POC": logging.debug("Start POC to BosMon") @@ -52,8 +52,8 @@ def run(typ,freq,data): else: logging.warning("BosMon response: "+str(httpresponse.status)+" - "+str(httpresponse.reason)) except: - logging.warning("POC to BosMon failed") + logging.error("POC to BosMon failed") else: - logging.warning("typ '"+typ+"' undefined in BosMon plugin") + logging.warning("undefined typ '"+typ+"'") except: - logging.exception("Error in BosMon Plugin") \ No newline at end of file + logging.exception("") \ No newline at end of file