Skip to content

feat: improve logging setup#261

Merged
federicobond merged 1 commit into
open-feature:mainfrom
federicobond:logging
Jan 27, 2024
Merged

feat: improve logging setup#261
federicobond merged 1 commit into
open-feature:mainfrom
federicobond:logging

Conversation

@federicobond

@federicobond federicobond commented Jan 17, 2024

Copy link
Copy Markdown
Member

This PR

Replaces the root logger with a custom logger for all logs emitted by the package.

I believe this should cover the logging requirements for the SDK, since logs can be manipulated later via handlers and formatters using the standard library logging package interface.

Follow-up Tasks

  • If we agree, mark this package as supporting logging configuration in the README.

@codecov

codecov Bot commented Jan 17, 2024

Copy link
Copy Markdown

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (15ce8f9) 93.84% compared to head (bab6c03) 93.89%.

Files Patch % Lines
openfeature/client.py 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #261      +/-   ##
==========================================
+ Coverage   93.84%   93.89%   +0.04%     
==========================================
  Files          16       16              
  Lines         439      442       +3     
==========================================
+ Hits          412      415       +3     
  Misses         27       27              
Flag Coverage Δ
unittests 93.89% <75.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gruebel gruebel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍

@federicobond federicobond requested a review from beeme1mr January 18, 2024 23:28
Signed-off-by: Federico Bond <federicobond@gmail.com>
@federicobond federicobond merged commit ccbff2c into open-feature:main Jan 27, 2024
kikihakiem pushed a commit to ResalApps/openfeature-python-sdk that referenced this pull request Aug 28, 2025
Some error codes are not on the stream, eg. istio is sending some special ones, and we already used to implement the same logic in java to bypass this issue.

Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
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.

3 participants