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,8 +224,10 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: |
|
226 | self.log.warn("Config file not found, skipping: <%s>" % \ | |
|
227 | self.config_file_name, exc_info=True) | |
|
227 | # Only warn if the default config file was NOT being used. | |
|
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 | 231 | self.file_config = Config() |
|
229 | 232 | except: |
|
230 | 233 | self.log.warn("Error loading config file: <%s>" % \ |
General Comments 0
You need to be logged in to leave comments.
Login now