Skip to content

Commit

Permalink
Fix log method
Browse files Browse the repository at this point in the history
  • Loading branch information
yeliudev committed Aug 23, 2024
1 parent be573c0 commit 8800932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nncore/utils/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def log(*args, logger=None, log_level=logging.INFO, **kwargs):
:obj:`logging.INFO`.
"""
level = logging._checkLevel(log_level)
msg = ' '.join(args)
msg = ' '.join([str(a) for a in args])
if isinstance(logger, logging.Logger):
logger.log(level, msg)
elif isinstance(logger, str):
Expand Down

0 comments on commit 8800932

Please sign in to comment.