From 2fb053643e620ea75e06ac72425eeee9d3055c1c Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Mon, 25 Mar 2013 23:59:42 -0400 Subject: [PATCH] ENH: minor -- add default value into the warning if option had none provided --- client/configreader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/configreader.py b/client/configreader.py index e1a2b69f..9028df48 100644 --- a/client/configreader.py +++ b/client/configreader.py @@ -122,8 +122,8 @@ class ConfigReader(SafeConfigParserWithIncludes): values[option[1]] = option[2] except NoOptionError: if not option[2] == None: - logSys.warn("'%s' not defined in '%s'. Using default value" - % (option[1], sec)) + logSys.warn("'%s' not defined in '%s'. Using default one: %r" + % (option[1], sec, option[2])) values[option[1]] = option[2] except ValueError: logSys.warn("Wrong value for '" + option[1] + "' in '" + sec +