-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: change logging to zap and change how change logs applied #9
Conversation
…also added more tests for admin routes
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9 +/- ##
==========================================
+ Coverage 35.79% 37.48% +1.68%
==========================================
Files 113 116 +3
Lines 9372 9457 +85
==========================================
+ Hits 3355 3545 +190
+ Misses 5656 5512 -144
- Partials 361 400 +39 ☔ View full report in Codecov by Sentry. |
proxyState.Logger().Error().Err(err).Msgf("error checking x-forwarded-for ip: %s", xForwardedForIps[i]) | ||
logger.Error("error checking x-forwarded-for ip", | ||
zap.String("x-forwarded-for_ip", xForwardedForIps[i]), | ||
zap.Error(err), |
Check failure
Code scanning / CodeQL
Clear-text logging of sensitive information High
Sensitive data returned by HTTP request headers
uncommend collectiontype add lock to reconfigure state remove ip from logs
…also added more tests for admin routes