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,6 +224,8 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: | |
|
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 | self.log.warn("Config file not found, skipping: <%s>" % \ |
|
229 | self.log.warn("Config file not found, skipping: <%s>" % \ | |
227 | self.config_file_name, exc_info=True) |
|
230 | self.config_file_name, exc_info=True) | |
228 | self.file_config = Config() |
|
231 | self.file_config = Config() |
General Comments 0
You need to be logged in to leave comments.
Login now