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

DGC-2079 Logging level to base converter #219

Merged
merged 6 commits into from
Feb 1, 2024

Conversation

Jerry-Jinfeng-Guo
Copy link
Contributor

Initial implementation following @jeandossantos's input on Teams. Added log level, defaulted to ERROR but configurable. A small unit test is also included.

 - added default = ERROR
 - configurable during converter construction
 - a small unit test checking log level of a base converter

Signed-off-by: Jerry Guo <[email protected]>
@Jerry-Jinfeng-Guo Jerry-Jinfeng-Guo marked this pull request as ready for review January 31, 2024 14:46
@Jerry-Jinfeng-Guo
Copy link
Contributor Author

At the moment some of the tests are failing. They don't appear as directly related to the code added. In particular: test_serialize_data and others. Since pgm-io is still impossible for me to debug, could anyone take a look at the branch? Thanks!

@mgovers
Copy link
Member

mgovers commented Feb 1, 2024

At the moment some of the tests are failing. They don't appear as directly related to the code added. In particular: test_serialize_data and others. Since pgm-io is still impossible for me to debug, could anyone take a look at the branch? Thanks!

I did some quick digging and it seems to have to do with the fact that the structlog configure is global

Copy link

sonarqubecloud bot commented Feb 1, 2024

@mgovers mgovers merged commit 1d38041 into main Feb 1, 2024
33 checks passed
@mgovers mgovers deleted the feature/Log-level-base-converter-IO branch February 1, 2024 09:44
@Jerry-Jinfeng-Guo Jerry-Jinfeng-Guo self-assigned this Feb 2, 2024
@Jerry-Jinfeng-Guo Jerry-Jinfeng-Guo added the improvement Existing functionality, but better, faster, stronger label Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Existing functionality, but better, faster, stronger
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants