improve styles, better logging

This commit is contained in:
Vladimir Mandic
2023-09-09 13:47:46 -04:00
parent c98a4ddb6a
commit 7bda411738
21 changed files with 215 additions and 133 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ def load_module(path):
setup_logging() # reset since scripts can hijaack logging
for line in stdout.getvalue().splitlines():
if len(line) > 0:
errors.log.info(f'Extension: script={os.path.relpath(path)} {line.strip()}')
errors.log.info(f"Extension: script='{os.path.relpath(path)}' {line.strip()}")
except Exception as e:
errors.display(e, f'Module load: {path}')
return module