Skip to content

Commit

Permalink
Merge pull request #143 from hugovk/fix-logging.warn-deprecation
Browse files Browse the repository at this point in the history
Docs: Replace deprecated logging.warn with logging.warning
  • Loading branch information
micheles authored Jun 22, 2022
2 parents ad013a2 + 6b06d00 commit 6f4cf6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ operations:
result = func(*args, **kw)
dt = time.time() - t0
if dt > timelimit:
logging.warn('%s took %d seconds', func.__name__, dt)
logging.warning('%s took %d seconds', func.__name__, dt)
else:
logging.info('%s took %d seconds', func.__name__, dt)
return result
Expand Down

0 comments on commit 6f4cf6f

Please sign in to comment.