From dd835689654c18353b02f9f5809c7746de222ab9 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Mon, 27 May 2019 18:17:12 +0200 Subject: talerconfig --- talerdonations/talerconfig.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'talerdonations') diff --git a/talerdonations/talerconfig.py b/talerdonations/talerconfig.py index 9598be5..4a44c97 100644 --- a/talerdonations/talerconfig.py +++ b/talerdonations/talerconfig.py @@ -344,7 +344,7 @@ class TalerConfig: filename = os.path.join(xdg, "taler.conf") else: filename = os.path.expanduser("~/.config/taler.conf") - logging.info("Loading default config: (%s)" % filename) + print("Loading default config: (%s)" % filename) if load_defaults: cfg.load_defaults() cfg.load_file(os.path.expanduser(filename)) @@ -497,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) ## -- cgit v1.2.3