Made the logger an object to be multiprocessing compatible.
The initialization of the Configuration() object can not log anymore since the Log() object initialization requires the Configuration(). Maybe I will find a better solution in the future. For now, it fixes bugs and makes my life easier.
This commit is contained in:
parent
4ae153f3be
commit
e5cc2a4596
19 changed files with 201 additions and 211 deletions
|
|
@ -20,5 +20,5 @@ class FritzboxPhoneStatusService(Service):
|
|||
self.__log = log
|
||||
|
||||
def execute(self, **kwargs):
|
||||
self.__log('debug', 'FritzboxPhoneStatusService object ' + str(self))
|
||||
self.__log.debug('FritzboxPhoneStatusService object ' + str(self))
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue