From 318ccb2d95098f9216018149c7393a560074f573 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 27 Mar 2018 11:48:57 +0200 Subject: [PATCH] Reduce log level WARNING and higher are sent to Sentry, which isn't necessary here. --- pillar/api/utils/authentication.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pillar/api/utils/authentication.py b/pillar/api/utils/authentication.py index 41188483..6af98fa3 100644 --- a/pillar/api/utils/authentication.py +++ b/pillar/api/utils/authentication.py @@ -46,10 +46,10 @@ def force_cli_user(): 'email': 'local@nowhere', 'username': 'CLI', }) - log.warning('CONSTRUCTED CLI USER %s of type %s', id(CLI_USER), id(type(CLI_USER))) + log.info('CONSTRUCTED CLI USER %s of type %s', id(CLI_USER), id(type(CLI_USER))) - log.warning('Logging in as CLI_USER (%s) of type %s, circumventing authentication.', - id(CLI_USER), id(type(CLI_USER))) + log.info('Logging in as CLI_USER (%s) of type %s, circumventing authentication.', + id(CLI_USER), id(type(CLI_USER))) g.current_user = CLI_USER @@ -230,7 +230,7 @@ def hash_auth_token(token: str) -> str: def store_token(user_id, token: str, token_expiry, oauth_subclient_id=False, - org_roles: typing.Set[str]=frozenset()): + org_roles: typing.Set[str] = frozenset()): """Stores an authentication token. :returns: the token document from MongoDB