From 3963bb4d8238d8f5bae7ce2cbcb8a8c89fce6203 Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Sun, 9 Mar 2025 08:50:53 +0100 Subject: [PATCH] extend logging, adjust loglevel for hash error --- radicale/auth/htpasswd.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/radicale/auth/htpasswd.py b/radicale/auth/htpasswd.py index bdec74c1..11700db9 100644 --- a/radicale/auth/htpasswd.py +++ b/radicale/auth/htpasswd.py @@ -306,13 +306,13 @@ class Auth(auth.BaseAuth): try: (method, password_ok) = self._verify(digest, password) except ValueError as e: - logger.warning("Login verification failed for user: '%s' (method '%s') '%s'", login, self._encryption, e) + logger.error("Login verification failed for user: '%s' (htpasswd/%s) with errror '%s'", login, self._encryption, e) return "" - logger.debug("Login verification successful for user: '%s' (method '%s')", login, method) if password_ok: + logger.debug("Login verification successful for user: '%s' (htpasswd/%s/%s)", login, self._encryption, method) return login else: - logger.warning("Login verification failed for user: '%s' (method '%s')", login, method) + logger.warning("Login verification failed for user: '%s' (htpasswd/%s/%s)", login, self._encryption, method) else: - logger.warning("Login verification user not found: '%s'", login) + logger.warning("Login verification user not found (htpasswd): '%s'", login) return ""