diff options
author | Hugo van Kemenade <hugovk@users.noreply.github.com> | 2022-06-22 10:54:24 +0300 |
---|---|---|
committer | Hugo van Kemenade <hugovk@users.noreply.github.com> | 2022-06-22 10:54:24 +0300 |
commit | 6b06d009cdb9e74d008b50d05e7bc4f78210deee (patch) | |
tree | bc5a9c487ac0f454e70fade5d2de94500eedbdf1 | |
parent | ad013a2c1ad7969963acf3dea948632be387f5a0 (diff) | |
download | python-decorator-git-6b06d009cdb9e74d008b50d05e7bc4f78210deee.tar.gz |
Replace deprecated logging.warn with logging.warning
-rw-r--r-- | README.rst | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |