Skip to content

Commit

Permalink
Rename logger from 'utils.logger' to 'yolov5' (#6421)
Browse files Browse the repository at this point in the history
* Gave a more explicit name to the logger

* Cleanup

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
  • Loading branch information
JonathanSamelson and glenn-jocher committed Jan 25, 2022
1 parent cfecd90 commit ed9bac8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit ed9bac8

Please sign in to comment.