Some more logging stuff...

This commit is contained in:
Johannes Findeisen 2022-10-05 05:50:13 +02:00
commit e665933bfb
9 changed files with 34 additions and 21 deletions

View file

@ -50,16 +50,18 @@ class Configuration:
source_section_option))
def dump_to_ini(self):
dump = ''
i = 0
for section in self.__configuration.sections():
if i < 1:
print('[' + section + ']')
dump = dump + '[' + section + ']\n'
else:
print('\n[' + section + ']')
dump = dump + '\n[' + section + ']\n'
options = self.__configuration.options(section)
for option in options:
print(option + " = " + self.__configuration.get(section, option))
dump = dump + option + " = " + self.__configuration.get(section, option) + '\n'
i = 1
return dump
def get_configuration_path(self):
return self.__configuration_path

View file

@ -19,6 +19,6 @@ class DummyService(Service):
self.__environment = environment
def execute(self, **kwargs):
log('debug', 'DummyService object ' + str(self))
log('debug', 'DummyService object ' + str(self) + ' using kwargs: ' + str(kwargs))
#log('debug', 'dummy object @' + str(self) + str(self.__kwargs['foo']))
return

View file

@ -21,5 +21,5 @@ class FritzboxUplinkService(Service):
self.__environment = environment
def execute(self, **kwargs):
log('debug', 'FritzboxUplinkService object ' + str(self))
log('debug', 'FritzboxUplinkService object ' + str(self) + ' using kwargs: ' + str(kwargs))
return