-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
🐛 Airbyte CDK: transforming Python log levels to Airbyte protocol log levels #7024
🐛 Airbyte CDK: transforming Python log levels to Airbyte protocol log levels #7024
Conversation
…irbyte protocol log levels
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.
Thank you for the fast turnaround!
I remember you added tests for log levels in the previous PR. Is this change reflected in those tests?
@davinchia I will create additional test. |
# Conflicts: # airbyte-cdk/python/CHANGELOG.md
@@ -44,10 +44,8 @@ class Config: | |||
|
|||
class Level(Enum): | |||
FATAL = "FATAL" | |||
CRITICAL = "CRITICAL" |
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.
what about the critical log level?
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.
@davinchia I transform levels by them numeric value. CRITICAL numeric value is equal to FATAL numeric value and will be transform to FATAL.
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.
do we have a test for that I am missing?
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.
@davinchia I've added test for transforming CRITICAL level
# Conflicts: # airbyte-cdk/python/CHANGELOG.md # airbyte-cdk/python/setup.py
What
Improving PR #6085. Remove adding Python log levels to Airbyte protocol, instead transform them to the Airbyte protocol log levels.
How
Changed method "format" of AirbyteLogFormatter. Mapping Python log levels with Airbyte protocol log levels.