Description
Noticed in several samplings of an active Solr that several debug statements were taking decently measurable time because of the time of the .toString even when the log.debug() statement would not output because it was effectively INFO or higher. Using parameterized logging statements, ie 'log.debug("Blah {}", o)' will avoid incurring that cost.
Attachments
Issue Links
- is fixed by
-
LUCENE-7788 fail precommit on unparameterised log messages and examine for wasted work/objects
- Closed
- is related to
-
LUCENE-7788 fail precommit on unparameterised log messages and examine for wasted work/objects
- Closed
- relates to
-
SOLR-11884 find/fix inefficiencies in our use of logging
- Resolved
-
SOLR-12286 Wrap log instances in "if (LOG.isLevelEnabled) { log... }
- Closed
- links to