mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
cleanup logger
This commit is contained in:
@@ -3,7 +3,7 @@ import os
|
||||
import contextlib
|
||||
import importlib.util
|
||||
import modules.errors as errors
|
||||
from modules import logger
|
||||
from modules.logger import log
|
||||
from installer import setup_logging
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ def load_module(path):
|
||||
if '2;36m' in line: # color escape sequence
|
||||
print(line.strip())
|
||||
else:
|
||||
logger.log.info(f"Extension: script='{os.path.relpath(path)}' {line.strip()}")
|
||||
log.info(f"Extension: script='{os.path.relpath(path)}' {line.strip()}")
|
||||
except Exception as e:
|
||||
errors.display(e, f'Module load: {path}')
|
||||
return module
|
||||
|
||||
Reference in New Issue
Block a user