From 0acdb8f5ee0cc7b97ac810c1f652602163f26541 Mon Sep 17 00:00:00 2001 From: Administrator Date: Thu, 27 Oct 2022 13:41:21 +0300 Subject: [PATCH] logging --- daemons/fetch.py | 2 +- daemons/notify.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/daemons/fetch.py b/daemons/fetch.py index 8c63806..09751f8 100644 --- a/daemons/fetch.py +++ b/daemons/fetch.py @@ -77,6 +77,6 @@ def fetch(): process() end = datetime.datetime.now() logging.info('fetch finished') - logging.info("time elapsed", (end - begin).total_seconds()) + logging.info("time elapsed %s", (end - begin).total_seconds()) delete_old() sleep(60 * 5) diff --git a/daemons/notify.py b/daemons/notify.py index 3f543ce..2eaedbc 100644 --- a/daemons/notify.py +++ b/daemons/notify.py @@ -61,5 +61,5 @@ def notify(): process() end = datetime.datetime.now() logging.info('notify finished') - logging.info("time elapsed", (end - begin).total_seconds()) + logging.info("time elapsed %s", (end - begin).total_seconds()) sleep(60)