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:
parent
e665933bfb
commit
7e228a3196
33 changed files with 188 additions and 204 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue