From 98aa0e23eb6c20ecac7e8e7533b08333fceda879 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Tue, 30 Apr 2013 08:19:11 +1000 Subject: [PATCH] BF: log error only if there were missed config files that couldn't be read --- client/configreader.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/configreader.py b/client/configreader.py index 44ebdd3d..5d52d6ad 100644 --- a/client/configreader.py +++ b/client/configreader.py @@ -72,7 +72,8 @@ class ConfigReader(SafeConfigParserWithIncludes): logSys.debug("Reading config files: " + ', '.join(config_files)) config_files_read = SafeConfigParserWithIncludes.read(self, config_files) missed = [ cf for cf in config_files if cf not in config_files_read ] - logSys.error("Error reading files: " + ', '.join(missed)) + if missed: + logSys.error("Could not read config files: " + ', '.join(missed)) if config_files_read: return True logSys.error("Found no accessible config files for %r under %s" %