From 482f45b86066f6569faa90fab21d32b207f75d4d Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 19 Jun 2018 11:37:19 -0400 Subject: [PATCH] Switch token/basic auth logging to INFO, to match login/logout logging. --- awx/api/authentication.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/api/authentication.py b/awx/api/authentication.py index a09df703cd..f0d345e444 100644 --- a/awx/api/authentication.py +++ b/awx/api/authentication.py @@ -25,7 +25,7 @@ class LoggedBasicAuthentication(authentication.BasicAuthentication): ret = super(LoggedBasicAuthentication, self).authenticate(request) if ret: username = ret[0].username if ret[0] else '' - logger.debug(smart_text(u"User {} performed a {} to {} through the API".format(username, request.method, request.path))) + logger.info(smart_text(u"User {} performed a {} to {} through the API".format(username, request.method, request.path))) return ret def authenticate_header(self, request): @@ -50,7 +50,7 @@ class LoggedOAuth2Authentication(OAuth2Authentication): if ret: user, token = ret username = user.username if user else '' - logger.debug(smart_text( + logger.info(smart_text( u"User {} performed a {} to {} through the API using OAuth token {}.".format( username, request.method, request.path, token.pk )