Rename logger from 'utils.logger' to 'yolov5' (#6421)
Browse files* Gave a more explicit name to the logger
* Cleanup
Co-authored-by: Glenn Jocher <[email protected]>
- utils/general.py +1 -1
utils/general.py
CHANGED
@@ -65,7 +65,7 @@ def set_logging(name=None, verbose=VERBOSE):
|
|
65 |
return logging.getLogger(name)
|
66 |
|
67 |
|
68 |
-
LOGGER = set_logging(
|
69 |
|
70 |
|
71 |
class Profile(contextlib.ContextDecorator):
|
|
|
65 |
return logging.getLogger(name)
|
66 |
|
67 |
|
68 |
+
LOGGER = set_logging('yolov5') # define globally (used in train.py, val.py, detect.py, etc.)
|
69 |
|
70 |
|
71 |
class Profile(contextlib.ContextDecorator):
|