Skip to content

Commit b8b1976

Browse files
Use logging.warning instead of logging.warn (#357)
1 parent 625e2ec commit b8b1976

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasktiger/worker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ def _mark_done() -> None:
761761
execution = json.loads(execution)
762762
else:
763763
# This can happen if the child process dies unexpectedly.
764-
log.warn("execution not found", **log_context)
764+
log.warning("execution not found", **log_context)
765765

766766
if (
767767
execution
@@ -1016,7 +1016,7 @@ def run(
10161016
if not self.scripts.can_replicate_commands:
10171017
# Older Redis versions may create additional overhead when
10181018
# executing pipelines.
1019-
self.log.warn("using old Redis version")
1019+
self.log.warning("using old Redis version")
10201020

10211021
if self.config["STATS_INTERVAL"]:
10221022
stats_thread = StatsThread(self)

0 commit comments

Comments
 (0)