From a1c090eeb78a86039f0b71cb932863d9a8c19d0c Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Tue, 9 Apr 2019 22:20:22 +0200 Subject: [PATCH] fix logging crash, fixes #424 --- src/nsupdate/api/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nsupdate/api/views.py b/src/nsupdate/api/views.py index ed8d4c0..9715fe7 100644 --- a/src/nsupdate/api/views.py +++ b/src/nsupdate/api/views.py @@ -134,7 +134,8 @@ def basic_authenticate(auth): return username, password -def check_api_auth(username, password): +@log.logger(__name__) +def check_api_auth(username, password, logger=None): """ Check username and password against our database.