Some more logging stuff. log is now a global function as argument.

Don't know if it is good, but it made things easier to me.
This commit is contained in:
Johannes Findeisen 2022-10-06 02:42:15 +02:00
commit 7e228a3196
33 changed files with 188 additions and 204 deletions

View file

@ -3,21 +3,19 @@ This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
"""
from linspector.core.helpers import log
from linspector.core.service import Service
def create(configuration, environment):
return ShellService(configuration, environment)
def create(configuration, environment, log):
return ShellService(configuration, environment, log)
class ShellService(Service):
def __init__(self, configuration, environment):
super().__init__(configuration, environment)
def __init__(self, configuration, environment, log):
super().__init__(configuration, environment, log)
self.__configuration = configuration
self.__environment = environment
self.__log = log
def execute(self, **kwargs):
return