-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
logger message severity changed for wrong token #788
base: master
Are you sure you want to change the base?
Conversation
gprofiler/main.py
Outdated
@@ -1032,7 +1032,7 @@ def main() -> None: | |||
else None | |||
) | |||
except APIError as e: | |||
logger.error(f"Server error: {e}") | |||
logger.critical(f"Server error: {e}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wasn't the critical level applicable only for invalid API token?
At the same time we can change the "server error: invalid API key" log to be CRITICAL.
(see this comment)
A known-message check might be needed here to trigger the critical level message in that specific case.
@Jongy , take a look?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Related to intel/granulate-utils#146
and #676