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:
Johannes Findeisen 2022-10-11 02:57:13 +02:00
commit e5cc2a4596
19 changed files with 201 additions and 211 deletions

View file

@ -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