change exception-handling

- only error-msg instead of logging.exception
- second logging.debug with exec-trace
This commit is contained in:
JHCD 2015-06-23 22:27:48 +02:00
parent c32beae4bb
commit d6b9174112
10 changed files with 132 additions and 61 deletions

View file

@ -48,7 +48,6 @@ def processAlarm(typ,freq,data):
logging.debug("return from: %s", pluginName)
except:
# call next plugin, if one has thrown an exception
logging.debug("return from: %s", pluginName, exc_info=True)
pass
else: # RegEX filter off - call plugin directly
logging.debug("call Plugin: %s", pluginName)
@ -57,9 +56,7 @@ def processAlarm(typ,freq,data):
logging.debug("return from: %s", pluginName)
except:
# call next plugin, if one has thrown an exception
logging.debug("return from: %s", pluginName, exc_info=True)
pass
logging.debug("[END ALARM]")
except:
logging.error("Error in Alarm processing")
logging.debug("Error in Alarm processing", exc_info=True)
logging.exception("Error in alarm processing")