mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-04-05 22:45:18 +00:00
use globals.config
This commit is contained in:
parent
5f667678d9
commit
76222da522
4 changed files with 18 additions and 23 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue