diff --git a/authserv/app_common.py b/authserv/app_common.py index 0b9deb2a669d287841e491f6f0baea5e1f40c5d2..58677d2d813e9f3a3bffb4adc0cab1f5cec89b4f 100644 --- a/authserv/app_common.py +++ b/authserv/app_common.py @@ -92,7 +92,8 @@ def _do_auth(mc, username, service, shard, password, otp_token, source_ip, if retval != protocol.OK and current_app.config.get('ENABLE_BLACKLIST'): if user: - bl.auth_failure('u', username) + if bl.auth_failure('u', username): + current_app.logger.info('blacklisted user %s', username) if (source_ip and not whitelisted(source_ip, current_app.config.get('SOURCE_IP_WHITELIST'))): if bl.auth_failure('ip', source_ip):