diff options
author | MaZderMind <git@mazdermind.de> | 2016-08-16 12:45:42 +0200 |
---|---|---|
committer | MaZderMind <git@mazdermind.de> | 2016-08-16 12:45:42 +0200 |
commit | eb21c3e832abdeda6c928995c9d4bf8fbb2efb33 (patch) | |
tree | b604926a1543acd1263499913f88886e935dbea3 /voctocore | |
parent | 7ce3b12e4a76d1926077d7efa57e5e9d3538de33 (diff) |
loggs list of considered config-files and those actually read, fixes #85
Diffstat (limited to 'voctocore')
-rw-r--r-- | voctocore/lib/config.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/voctocore/lib/config.py b/voctocore/lib/config.py index 3075f61..df0ff9a 100644 --- a/voctocore/lib/config.py +++ b/voctocore/lib/config.py @@ -1,4 +1,5 @@ import os.path +import logging from configparser import SafeConfigParser from lib.args import Args @@ -23,4 +24,10 @@ if Args.ini_file is not None: files.append(Args.ini_file) Config = SafeConfigParser() -Config.read(files) +readfiles = Config.read(files) + +log = logging.getLogger('ConfigParser') +log.debug('considered config-files: \n%s', + "\n".join(["\t\t"+os.path.normpath(file) for file in files]) ) +log.debug('successfully parsed config-files: \n%s', + "\n".join(["\t\t"+os.path.normpath(file) for file in readfiles]) ) |