diff options
author | Michele Simionato <michele.simionato@gmail.com> | 2022-06-22 15:50:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-22 15:50:54 +0200 |
commit | 6f4cf6f01e81c860ab0add4580f73e099bf8abba (patch) | |
tree | bc5a9c487ac0f454e70fade5d2de94500eedbdf1 | |
parent | ad013a2c1ad7969963acf3dea948632be387f5a0 (diff) | |
parent | 6b06d009cdb9e74d008b50d05e7bc4f78210deee (diff) | |
download | python-decorator-git-6f4cf6f01e81c860ab0add4580f73e099bf8abba.tar.gz |
Merge pull request #143 from hugovk/fix-logging.warn-deprecation
Docs: 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 |