add debug message

This commit is contained in:
Christophe Benz 2010-11-19 04:37:47 +01:00 committed by Romain Bignon
commit f924c0aa92
2 changed files with 2 additions and 0 deletions

View file

@ -41,6 +41,7 @@ class INIConfig(IConfig):
self.values = OrderedDict(default)
if os.path.exists(self.path):
logging.debug(u'Loading application configuration file: %s.' % self.path)
self.config.read(self.path)
for section in self.config.sections():
args = section.split(':')

View file

@ -37,6 +37,7 @@ class YamlConfig(IConfig):
def load(self, default={}):
self.values = default.copy()
logging.debug(u'Loading application configuration file: %s.' % self.path)
try:
with open(self.path, 'r') as f:
self.values = yaml.load(f)