Fix _logger assignment
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
2626ceead6
commit
ed35590ac6
@ -6,6 +6,8 @@ import colorlog
|
|||||||
|
|
||||||
|
|
||||||
def loghandler():
|
def loghandler():
|
||||||
|
_logger = colorlog.getLogger(__name__)
|
||||||
|
|
||||||
loglevel = os.getenv('LOG_LEVEL', "INFO")
|
loglevel = os.getenv('LOG_LEVEL', "INFO")
|
||||||
|
|
||||||
match loglevel.lower():
|
match loglevel.lower():
|
||||||
@ -22,8 +24,6 @@ def loghandler():
|
|||||||
case _:
|
case _:
|
||||||
raise ValueError("Definied value of LOG_LEVEL is not known. Possible values are debug, info, warn, warning, error, crit and critical.")
|
raise ValueError("Definied value of LOG_LEVEL is not known. Possible values are debug, info, warn, warning, error, crit and critical.")
|
||||||
|
|
||||||
_logger = colorlog.getLogger(__name__)
|
|
||||||
|
|
||||||
handler = colorlog.StreamHandler(sys.stdout)
|
handler = colorlog.StreamHandler(sys.stdout)
|
||||||
if loglevel:
|
if loglevel:
|
||||||
handler.setLevel(logging.DEBUG)
|
handler.setLevel(logging.DEBUG)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user