From b369eb28f1f1808f9ad3d0448a770dc2c5eaadee Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 11 Apr 2019 10:43:13 +0200 Subject: [PATCH] set default log level to warn, fix clean_nonces not working --- helm/passbook/templates/passbook-configmap.yaml | 4 ++-- passbook/core/tasks.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/helm/passbook/templates/passbook-configmap.yaml b/helm/passbook/templates/passbook-configmap.yaml index 1c9a3fe1c..26618935a 100644 --- a/helm/passbook/templates/passbook-configmap.yaml +++ b/helm/passbook/templates/passbook-configmap.yaml @@ -15,8 +15,8 @@ data: port: '' log: level: - console: DEBUG - file: DEBUG + console: WARNING + file: WARNING file: /dev/null syslog: host: 127.0.0.1 diff --git a/passbook/core/tasks.py b/passbook/core/tasks.py index 0b691ce2a..e7339c46b 100644 --- a/passbook/core/tasks.py +++ b/passbook/core/tasks.py @@ -24,5 +24,5 @@ def send_email(to_address, subject, template, context): @CELERY_APP.task() def clean_nonces(): """Remove expired nonces""" - amount = Nonce.objects.filter(expires__lt=datetime.now(), expiring=True).delete() + amount, _ = Nonce.objects.filter(expires__lt=datetime.now(), expiring=True).delete() LOGGER.debug("Deleted expired %d nonces", amount)