mirror of
https://github.com/Kozea/Radicale.git
synced 2025-04-04 21:57:43 +03:00
extend logging, adjust loglevel for hash error
This commit is contained in:
parent
cffb2aaae3
commit
3963bb4d82
1 changed files with 4 additions and 4 deletions
|
@ -306,13 +306,13 @@ class Auth(auth.BaseAuth):
|
||||||
try:
|
try:
|
||||||
(method, password_ok) = self._verify(digest, password)
|
(method, password_ok) = self._verify(digest, password)
|
||||||
except ValueError as e:
|
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 ""
|
return ""
|
||||||
logger.debug("Login verification successful for user: '%s' (method '%s')", login, method)
|
|
||||||
if password_ok:
|
if password_ok:
|
||||||
|
logger.debug("Login verification successful for user: '%s' (htpasswd/%s/%s)", login, self._encryption, method)
|
||||||
return login
|
return login
|
||||||
else:
|
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:
|
else:
|
||||||
logger.warning("Login verification user not found: '%s'", login)
|
logger.warning("Login verification user not found (htpasswd): '%s'", login)
|
||||||
return ""
|
return ""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue