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

Hide a specific header from dio logger #315

Closed
wants to merge 6 commits into from

Conversation

Ilushnik
Copy link
Contributor

Added functionality based on issue #281

Values for specified by user keys will be replaced with "*****" in header.

@codecov-commenter
Copy link

codecov-commenter commented Jan 12, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (a839223) to head (47c7e9f).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##           master      #315      +/-   ##
===========================================
+ Coverage   98.40%   100.00%   +1.59%     
===========================================
  Files          28         3      -25     
  Lines         566       108     -458     
===========================================
- Hits          557       108     -449     
+ Misses          9         0       -9     

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

@Frezyx Frezyx added enhancement New feature or request console Related to console output security Related to ensuring the security of app data labels Jan 12, 2025
@Frezyx Frezyx linked an issue Jan 12, 2025 that may be closed by this pull request
@Frezyx Frezyx added the talker_dio_logger Related to talker_dio_logger package label Jan 12, 2025
@Ilushnik
Copy link
Contributor Author

@Frezyx , As I understand it, I need to install Codecov. I added the Codecov app on GitHub, but I am unable to log into the Codecov site and keep receiving a 403 error. I'm quite perplexed.

@Frezyx
Copy link
Owner

Frezyx commented Jan 21, 2025

Hello @Ilushnik !
Everything is good right now and we ready to merge. Thank you for adding tests

Comment on lines 97 to 99
/// Header values for the specified keys in the Set will be replaced with *****.
/// Case insensitive
final Set<String> hideHeaderValuesForKeys;
Copy link
Owner

Choose a reason for hiding this comment

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

hideHeaderValuesForKeys is huge and hard name for this field
Can we rename it to hiddenHeaders ?

Comment on lines +17 to +19
/// [TalkerHttpLogger] settings and customization
TalkerHttpLoggerSettings settings;

Copy link
Owner

Choose a reason for hiding this comment

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

I understand that this feature is same for talker_http and talker_dio but can we create separated PR with TalkerHttpLoggerSettings for talker_http. And hiddenHeaders will be added for TalkerHttpLoggerSettings in this new Pull-request ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
console Related to console output enhancement New feature or request security Related to ensuring the security of app data talker_dio_logger Related to talker_dio_logger package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exclude a specific header from dio logger
3 participants