From 849c06d6d43d61dc707ae6b12e2d8854e85fcc2f Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Tue, 9 Apr 2019 20:12:10 +0200 Subject: [PATCH] logging: demote "no auth" to DEBUG level, fixes #415 --- 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 f0e7f10..c764490 100644 --- a/src/nsupdate/api/views.py +++ b/src/nsupdate/api/views.py @@ -206,7 +206,8 @@ class NicUpdateView(View): hostname = request.GET.get('hostname') auth = request.META.get('HTTP_AUTHORIZATION') if auth is None: - logger.warning('%s - received no auth' % (hostname, )) + # logging this at debug level because otherwise it fills our logs... + logger.debug('%s - received no auth' % (hostname, )) return basic_challenge("authenticate to update DNS", 'badauth') username, password = basic_authenticate(auth) if '.' not in username: # username MUST be the fqdn