[
https://issues.apache.org/jira/browse/HIVE-25152?focusedWorklogId=600854&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-600854
]
ASF GitHub Bot logged work on HIVE-25152:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 22/May/21 15:51
Start Date: 22/May/21 15:51
Worklog Time Spent: 10m
Work Description: belugabehr commented on pull request #2310:
URL: https://github.com/apache/hive/pull/2310#issuecomment-846426813
@pgaref Thank you so much for your interest in this.
I do not believe the requested changes will yield any value. The two
reasons one would use the anchors `{}` in SLF4J is twofold:
1. Readability (String formatting and no need for boilerplate logging guards)
2. Performance when _not_ logging
This PR is simply to remove superfluous code that does not add any
measurable value and makes the code harder to read. I don't want to be adding
in new code changes if I can help it.
With that said, in any production environment, the logging level will always
be _at least_: INFO, WARN, ERROR. Therefore, there is no need to ever care
about performance of INFO messages. It is _assumed_ that they will always be
printed, so there is no need to add logging guards (`if (Log.isInfoEnabled())`)
and there is no need for anchors. Again, anchors are nice for readability, but
I don't want to modify the existing INFO level logging too much; that is
another exercise for another PR if someone is truly inclined. I think it's
better to just stop introducing this superfluous code moving forward and the
old stuff will eventually be updated.
Thanks.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 600854)
Time Spent: 3h (was: 2h 50m)
> Remove Superfluous Logging Code
> -------------------------------
>
> Key: HIVE-25152
> URL: https://issues.apache.org/jira/browse/HIVE-25152
> Project: Hive
> Issue Type: Improvement
> Reporter: David Mollitor
> Assignee: David Mollitor
> Priority: Major
> Labels: pull-request-available
> Time Spent: 3h
> Remaining Estimate: 0h
>
> So much logging code can be removed to lessen the amount of code in the
> project (and perhaps some small performance gains).
--
This message was sent by Atlassian Jira
(v8.3.4#803005)