Commit 96d86804 authored by Samuel Gaist's avatar Samuel Gaist

[scripts][worker] Do not use a global for logger

parent 3fb68e8e
......@@ -85,7 +85,7 @@ from ..version import __version__
from ..worker import WorkerController
stop = False
logger = None
logger = logging.getLogger(__name__)
# ----------------------------------------------------------
......@@ -251,9 +251,6 @@ def main(user_input=None):
global logger
logger = logging.getLogger(__name__)
# Check the prefix path
prefix = args["--prefix"] if args["--prefix"] is not None else "."
if not os.path.exists(prefix):
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment