Skip to content
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

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

pfilipko1
Copy link
Collaborator

@@ -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}")
Copy link
Collaborator

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?

marcin-ol
marcin-ol previously approved these changes May 25, 2023
Copy link
Collaborator

@marcin-ol marcin-ol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pfilipko1 pfilipko1 changed the title logger message severity changed logger message severity changed for wrong token Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants