mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-01-28 19:04:20 +01:00
edit plugin debug messages
This commit is contained in:
parent
c85ce2b158
commit
70c57bda44
|
|
@ -18,13 +18,11 @@ def run(typ,freq,data):
|
|||
except:
|
||||
logging.exception("cannot read config file")
|
||||
|
||||
|
||||
########## User Plugin CODE ##########
|
||||
if typ == "FMS":
|
||||
logging.warning("FMS not implemented")
|
||||
|
||||
logging.warning("%s not supported", typ)
|
||||
elif typ == "ZVEI":
|
||||
logging.warning("ZVEI not implemented")
|
||||
|
||||
logging.warning("%s not supported", typ)
|
||||
elif typ == "POC":
|
||||
logging.debug("Start POC to BosMon")
|
||||
try:
|
||||
|
|
@ -51,6 +49,8 @@ def run(typ,freq,data):
|
|||
except:
|
||||
logging.error("POC to BosMon failed")
|
||||
else:
|
||||
logging.warning("undefined typ '%s'", typ)
|
||||
logging.warning("Invalid Typ: %s", typ)
|
||||
########## User Plugin CODE ##########
|
||||
|
||||
except:
|
||||
logging.exception("")
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ def run(typ,freq,data):
|
|||
cursor.execute("INSERT INTO "+globals.config.get("MySQL","tablePOC")+" (time,ric,funktion,text) VALUES (NOW(),%s,%s,%s)",(data["ric"],data["function"],data["msg"]))
|
||||
|
||||
else:
|
||||
logging.warning(typ + " not supportet")
|
||||
logging.warning("Invalid Typ: %s", typ)
|
||||
except:
|
||||
logging.exception("cannot Insert %s", typ)
|
||||
|
||||
|
|
|
|||
|
|
@ -33,14 +33,16 @@ def run(typ,freq,data):
|
|||
except:
|
||||
logging.exception("cannot read config file")
|
||||
|
||||
########## User Plugin CODE ##########
|
||||
if typ == "FMS":
|
||||
logging.debug(typ + " not supported")
|
||||
logging.warning("%s not supported", typ)
|
||||
elif typ == "ZVEI":
|
||||
logging.debug(typ + " not supported")
|
||||
logging.warning("%s not supported", typ)
|
||||
elif typ == "POC":
|
||||
logging.debug(typ + " not supported")
|
||||
logging.warning("%s not supported", typ)
|
||||
else:
|
||||
logging.warning(typ + " not supported")
|
||||
logging.warning("Invalid Typ: %s", typ)
|
||||
########## User Plugin CODE ##########
|
||||
|
||||
except:
|
||||
logging.exception("unknown error")
|
||||
|
|
|
|||
|
|
@ -35,13 +35,13 @@ def run(typ,freq,data):
|
|||
|
||||
########## User Plugin CODE ##########
|
||||
if typ == "FMS":
|
||||
logging.warning(typ + " not supported")
|
||||
logging.warning("%s not supported", typ)
|
||||
elif typ == "ZVEI":
|
||||
logging.warning(typ + " not supported")
|
||||
logging.warning("%s not supported", typ)
|
||||
elif typ == "POC":
|
||||
logging.warning(typ + " not supported")
|
||||
logging.warning("%s not supported", typ)
|
||||
else:
|
||||
logging.warning(typ + " not supported")
|
||||
logging.warning("Invalid Typ: %s", typ)
|
||||
########## User Plugin CODE ##########
|
||||
|
||||
except:
|
||||
|
|
|
|||
Loading…
Reference in a new issue