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

@ -8,6 +8,6 @@ See LICENSE (MIT license)
class Plugin:
def __init__(self, configuration, environment, linspector, log):
self.__configuration = configuration
self._environment = environment
self.__environment = environment
self.__linspector = linspector
self.__log = log