use globals.config

This commit is contained in:
Schrolli 2015-05-20 14:26:17 +02:00
parent 5f667678d9
commit 76222da522
4 changed files with 18 additions and 23 deletions

View file

@ -9,8 +9,7 @@ def run(typ,freq,data):
#ConfigParser
logging.debug("reading config file")
try:
config = dict(globals.config.items("MySQL"))
for key,val in config.items():
for key,val in globals.config.items("BOSWatch"):
logging.debug(" - %s = %s", key, val)
except:
logging.exception("cannot read config file")