Some more logging stuff...
This commit is contained in:
parent
60d4cd9dd8
commit
e665933bfb
9 changed files with 34 additions and 21 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue