From b8b1976c0a28d6b26431876d479ac8f2b733e030 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 4 Dec 2024 12:55:15 -0500 Subject: [PATCH] Use logging.warning instead of logging.warn (#357) --- tasktiger/worker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasktiger/worker.py b/tasktiger/worker.py index b99482d..e4acd58 100644 --- a/tasktiger/worker.py +++ b/tasktiger/worker.py @@ -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 @@ -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)