From 057e2eba9a399e23b3d3ad0acaba31608ae8aa5f Mon Sep 17 00:00:00 2001 From: Scott Gasch Date: Sat, 1 Apr 2023 11:49:59 -0700 Subject: [PATCH] Make cron.py warn on no --timeout which can lead to stale locks. --- examples/cron/cron.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/cron/cron.py b/examples/cron/cron.py index db91af1..99c19af 100755 --- a/examples/cron/cron.py +++ b/examples/cron/cron.py @@ -141,7 +141,7 @@ def main() -> int: logger.debug("Timeout is %ss", timeout) lockfile_expiration = datetime.datetime.now().timestamp() + timeout else: - logger.debug("Timeout not specified; no lockfile expiration.") + logger.warning("Timeout not specified; no lockfile expiration.") lockfile_expiration = None lockfile_path = config.config["lockfile"] -- 2.47.1