diff --git a/plugin_test/plugin_test.py b/plugin_test/plugin_test.py index 32e8991..fe8ac5d 100755 --- a/plugin_test/plugin_test.py +++ b/plugin_test/plugin_test.py @@ -25,7 +25,7 @@ logger.addHandler(fh) #create a display loger ch = logging.StreamHandler() -ch.setLevel(logging.ERROR) #log level >= Error +ch.setLevel(logging.INFO) #log level >= info ch.setFormatter(formatter) logger.addHandler(ch) @@ -33,7 +33,7 @@ logger.addHandler(ch) #log levels #---------- #debug - debug messages only for log -#info - inormation for normal display +#info - information for normal display #warning #error - normal error - program goes further #exception - error with exception message in log diff --git a/plugin_test/plugins/template/__init__.py b/plugin_test/plugins/template/__init__.py index 7d44380..a82d6b1 100644 --- a/plugin_test/plugins/template/__init__.py +++ b/plugin_test/plugins/template/__init__.py @@ -5,7 +5,8 @@ import logging # Global logger import globals # Global variables def run(typ,freq,data): - try: - logging.info("ZVEI: %s wurde auf %s empfangen!", data["zvei"],freq) - except: - logging.exception("Error in Template Plugin") \ No newline at end of file + try: + if typ == "ZVEI": + logging.info("ZVEI: %s wurde auf %s empfangen!", data["zvei"],freq) + except: + logging.exception("Error in Template Plugin") \ No newline at end of file