add debug message
This commit is contained in:
parent
74cf586d36
commit
f924c0aa92
2 changed files with 2 additions and 0 deletions
|
|
@ -41,6 +41,7 @@ class INIConfig(IConfig):
|
||||||
self.values = OrderedDict(default)
|
self.values = OrderedDict(default)
|
||||||
|
|
||||||
if os.path.exists(self.path):
|
if os.path.exists(self.path):
|
||||||
|
logging.debug(u'Loading application configuration file: %s.' % self.path)
|
||||||
self.config.read(self.path)
|
self.config.read(self.path)
|
||||||
for section in self.config.sections():
|
for section in self.config.sections():
|
||||||
args = section.split(':')
|
args = section.split(':')
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,7 @@ class YamlConfig(IConfig):
|
||||||
def load(self, default={}):
|
def load(self, default={}):
|
||||||
self.values = default.copy()
|
self.values = default.copy()
|
||||||
|
|
||||||
|
logging.debug(u'Loading application configuration file: %s.' % self.path)
|
||||||
try:
|
try:
|
||||||
with open(self.path, 'r') as f:
|
with open(self.path, 'r') as f:
|
||||||
self.values = yaml.load(f)
|
self.values = yaml.load(f)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue