From eb21c3e832abdeda6c928995c9d4bf8fbb2efb33 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Tue, 16 Aug 2016 12:45:42 +0200 Subject: loggs list of considered config-files and those actually read, fixes #85 --- voctocore/lib/config.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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]) ) -- cgit v1.2.3