##// 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 def __init__(self):
77 def __init__(self):
78 self.init_logger()
78 self.init_logger()
79 self.default_config_file_name = self.config_file_name
79
80
80 def init_logger(self):
81 def init_logger(self):
81 self.log = logging.getLogger(self.__class__.__name__)
82 self.log = logging.getLogger(self.__class__.__name__)
@@ -223,8 +224,10 b' class Application(object):'
223 self.file_config = loader.load_config()
224 self.file_config = loader.load_config()
224 self.file_config.Global.config_file = loader.full_filename
225 self.file_config.Global.config_file = loader.full_filename
225 except IOError:
226 except IOError:
226 self.log.warn("Config file not found, skipping: <%s>" % \
227 # Only warn if the default config file was NOT being used.
227 self.config_file_name, exc_info=True)
228 if not self.config_file_name==self.default_config_file_name:
229 self.log.warn("Config file not found, skipping: <%s>" % \
230 self.config_file_name, exc_info=True)
228 self.file_config = Config()
231 self.file_config = Config()
229 except:
232 except:
230 self.log.warn("Error loading config file: <%s>" % \
233 self.log.warn("Error loading config file: <%s>" % \
General Comments 0
You need to be logged in to leave comments. Login now