Skip to content

Conversation

@pfilipko1
Copy link
Contributor

)
except APIError as e:
logger.error(f"Server error: {e}")
logger.critical(f"Server error: {e}")
Copy link
Contributor

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
Contributor

@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