Make cron.py warn on no --timeout which can lead to stale locks.
[pyutils.git] / examples / cron / cron.py
index db91af1c0c0e9f47ce0cfc6de2b0ee3c21c6b5b8..99c19af902f3a7f50db5c0a573517cc9dabc9821 100755 (executable)
@@ -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"]