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
Set per record log to debug level #12909
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #12909 +/- ##
============================================
+ Coverage 61.75% 62.17% +0.42%
+ Complexity 207 198 -9
============================================
Files 2436 2502 +66
Lines 133233 136390 +3157
Branches 20636 21106 +470
============================================
+ Hits 82274 84797 +2523
- Misses 44911 45309 +398
- Partials 6048 6284 +236
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
You don't need to modify the source code to change a log. Instead I would recommend to modify the log4j2.xml file you are using to disable the logging on this class (or change it to warn). For example, adding the following logger: <!-- The rest of your log4j2.xml file -->
<Loggers>
<Root level="info" additivity="false">
<AppenderRef ref="pinotLog"/>
</Root>
<Logger name="org.apache.pinot.segment.local.recordtransformer.SpecialValueTransformer" level="warn" additivity="false">
<AppenderRef ref="pinotLog"/>
</Logger>
</Loggers> |
Is |
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.
I think we may introduce an API reportStats()
to the RecordTransformer
to report the stats collected over all records. We shouldn't log record level info
Per record level logging is pretty expensive, this log line emits 98% of our logs. I believe changing it to debug level is reasonable.
tags:
refactor