Skip to content

Commit ef91d1f

Browse files
Rename logger from 'utils.logger' to 'yolov5' (ultralytics#6421)
* Gave a more explicit name to the logger * Cleanup Co-authored-by: Glenn Jocher <[email protected]>
1 parent 8cfb8bb commit ef91d1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/general.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def set_logging(name=None, verbose=VERBOSE):
6565
return logging.getLogger(name)
6666

6767

68-
LOGGER = set_logging(__name__) # define globally (used in train.py, val.py, detect.py, etc.)
68+
LOGGER = set_logging('yolov5') # define globally (used in train.py, val.py, detect.py, etc.)
6969

7070

7171
class Profile(contextlib.ContextDecorator):

0 commit comments

Comments
 (0)