summaryrefslogtreecommitdiff
path: root/talersurvey/talerconfig.py
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2019-05-27 18:42:07 +0200
committerMarcello Stanisci <stanisci.m@gmail.com>2019-05-27 18:42:07 +0200
commit7c898b3153c22a03d39bcb9e649c8d130ea1b92e (patch)
tree4a129c13ce03f147e057b00a2f4e4b2b7d5bb66e /talersurvey/talerconfig.py
parent44f74f2ce694a95a7f73febea029b9f3a2cf4e82 (diff)
downloadsurvey-7c898b3153c22a03d39bcb9e649c8d130ea1b92e.tar.gz
survey-7c898b3153c22a03d39bcb9e649c8d130ea1b92e.tar.bz2
survey-7c898b3153c22a03d39bcb9e649c8d130ea1b92e.zip
upgrade/fix config logic
Diffstat (limited to 'talersurvey/talerconfig.py')
-rw-r--r--talersurvey/talerconfig.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/talersurvey/talerconfig.py b/talersurvey/talerconfig.py
index 69d06a8..4a44c97 100644
--- a/talersurvey/talerconfig.py
+++ b/talersurvey/talerconfig.py
@@ -344,6 +344,7 @@ class TalerConfig:
filename = os.path.join(xdg, "taler.conf")
else:
filename = os.path.expanduser("~/.config/taler.conf")
+ print("Loading default config: (%s)" % filename)
if load_defaults:
cfg.load_defaults()
cfg.load_file(os.path.expanduser(filename))
@@ -496,7 +497,8 @@ class TalerConfig:
value=value, filename=filename, lineno=lineno)
sections[current_section][key] = entry
except FileNotFoundError:
- LOGGER.error("Configuration file (%s) not found", filename)
+ # not logging here, as this interests the final user mostly.
+ print("Configuration file (%s) not found" % filename)
sys.exit(3)
##