mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-01-22 08:10:24 +01:00
small change in configParser
This commit is contained in:
parent
dcc40e2288
commit
a942688775
|
|
@ -13,7 +13,7 @@ def run(typ,freq,data):
|
|||
#ConfigParser
|
||||
logging.debug("reading config file")
|
||||
try:
|
||||
for key,val in globals.config.items("BOSWatch"):
|
||||
for key,val in globals.config.items("BosMon"):
|
||||
logging.debug(" - %s = %s", key, val)
|
||||
except:
|
||||
logging.exception("cannot read config file")
|
||||
|
|
@ -53,4 +53,4 @@ def run(typ,freq,data):
|
|||
else:
|
||||
logging.warning("undefined typ '%s'", typ)
|
||||
except:
|
||||
logging.exception("")
|
||||
logging.exception("")
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ def run(typ,freq,data):
|
|||
#ConfigParser
|
||||
logging.debug("reading config file")
|
||||
try:
|
||||
for key,val in globals.config.items("BOSWatch"):
|
||||
for key,val in globals.config.items("template"):
|
||||
logging.debug(" - %s = %s", key, val)
|
||||
except:
|
||||
logging.exception("cannot read config file")
|
||||
|
|
@ -43,4 +43,4 @@ def run(typ,freq,data):
|
|||
logging.warning(typ + " not supported")
|
||||
|
||||
except:
|
||||
logging.exception("unknown error")
|
||||
logging.exception("unknown error")
|
||||
|
|
|
|||
Loading…
Reference in a new issue