-
-
Notifications
You must be signed in to change notification settings - Fork 216
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: querylog: define which information should be logged (#765) #766
Conversation
Codecov ReportBase: 89.15% // Head: 89.33% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## development #766 +/- ##
===============================================
+ Coverage 89.15% 89.33% +0.17%
===============================================
Files 42 42
Lines 4833 4876 +43
===============================================
+ Hits 4309 4356 +47
+ Misses 454 451 -3
+ Partials 70 69 -1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Co-authored-by: ThinkChaos <ThinkChaos@users.noreply.github.com>
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.
Looks good to me :)
util.QuestionToString(request.Req.Question), | ||
util.AnswerToString(response.Res.Answer), |
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.
Obfuscates question and answer if log privacy is enabled
entry.Answer = util.AnswerToString(response.Res.Answer) | ||
|
||
case config.QueryLogFieldQuestion: | ||
entry.QuestionName = request.Req.Question[0].Name |
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.
should use util.QuestionToString -> this will obfuscate question if log privacy is enabled
closes #765