From ac0cee77ae42fd22c9372fae79df0224cd8f4a92 Mon Sep 17 00:00:00 2001 From: Jonathan Samelson Date: Tue, 25 Jan 2022 13:07:37 +0100 Subject: [PATCH 1/2] Gave a more explicit name to the logger --- utils/general.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/general.py b/utils/general.py index 41f47785bd16..89785f111658 100755 --- a/utils/general.py +++ b/utils/general.py @@ -65,7 +65,7 @@ def set_logging(name=None, verbose=VERBOSE): return logging.getLogger(name) -LOGGER = set_logging(__name__) # define globally (used in train.py, val.py, detect.py, etc.) +LOGGER = set_logging("yolov5") # define globally (used in train.py, val.py, detect.py, etc.) class Profile(contextlib.ContextDecorator): From 4a59472029b1baa0e88f07656002f1280948cd6a Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Tue, 25 Jan 2022 07:20:20 -0800 Subject: [PATCH 2/2] Cleanup --- utils/general.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/general.py b/utils/general.py index 89785f111658..3d6da2fdb173 100755 --- a/utils/general.py +++ b/utils/general.py @@ -65,7 +65,7 @@ def set_logging(name=None, verbose=VERBOSE): return logging.getLogger(name) -LOGGER = set_logging("yolov5") # define globally (used in train.py, val.py, detect.py, etc.) +LOGGER = set_logging('yolov5') # define globally (used in train.py, val.py, detect.py, etc.) class Profile(contextlib.ContextDecorator):