##// END OF EJS Templates
Don't warn the user if the default config file is missing....
Brian Granger -
Show More
@@ -76,6 +76,7 b' class Application(object):'
76 76
77 77 def __init__(self):
78 78 self.init_logger()
79 self.default_config_file_name = self.config_file_name
79 80
80 81 def init_logger(self):
81 82 self.log = logging.getLogger(self.__class__.__name__)
@@ -223,6 +224,8 b' class Application(object):'
223 224 self.file_config = loader.load_config()
224 225 self.file_config.Global.config_file = loader.full_filename
225 226 except IOError:
227 # Only warn if the default config file was NOT being used.
228 if not self.config_file_name==self.default_config_file_name:
226 229 self.log.warn("Config file not found, skipping: <%s>" % \
227 230 self.config_file_name, exc_info=True)
228 231 self.file_config = Config()
General Comments 0
You need to be logged in to leave comments. Login now