Skip to content

Commit 4684a4f

Browse files
committed
Log auth details during debugging
Signed-off-by: Kipchirchir Sigei <[email protected]>
1 parent 4822d6f commit 4684a4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

onadata/libs/authentication.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
logger = logging.getLogger("console_logger")
4444
logger.addHandler(logging.StreamHandler())
45-
logger.setLevel(logging.INFO)
45+
logger.setLevel(logging.DEBUG)
4646

4747
ENKETO_AUTH_COOKIE = getattr(settings, "ENKETO_AUTH_COOKIE", "__enketo")
4848
TEMP_TOKEN_EXPIRY_TIME = getattr(
@@ -127,7 +127,7 @@ def authenticate(self, request):
127127
f"IP: {ip_address}, USERNAME: {username}, "
128128
f"REMAINING_ATTEMPTS: {remaining_attempts}, USER_AGENT: {user_agent}"
129129
)
130-
logger.info(info_str)
130+
logger.debug(info_str)
131131
error_str = _(
132132
"Invalid username/password. "
133133
f"For security reasons, after {remaining_attempts} more failed "

0 commit comments

Comments
 (0)