Skip to content

Commit

Permalink
Use logging.warning instead of logging.warn (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
lightswitch05 authored Dec 4, 2024
1 parent 625e2ec commit b8b1976
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasktiger/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ def _mark_done() -> None:
execution = json.loads(execution)
else:
# This can happen if the child process dies unexpectedly.
log.warn("execution not found", **log_context)
log.warning("execution not found", **log_context)

if (
execution
Expand Down Expand Up @@ -1016,7 +1016,7 @@ def run(
if not self.scripts.can_replicate_commands:
# Older Redis versions may create additional overhead when
# executing pipelines.
self.log.warn("using old Redis version")
self.log.warning("using old Redis version")

if self.config["STATS_INTERVAL"]:
stats_thread = StatsThread(self)
Expand Down

0 comments on commit b8b1976

Please sign in to comment.