[
https://issues.apache.org/jira/browse/HIVE-25152?focusedWorklogId=600919&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-600919
]
ASF GitHub Bot logged work on HIVE-25152:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 23/May/21 10:58
Start Date: 23/May/21 10:58
Worklog Time Spent: 10m
Work Description: pgaref commented on pull request #2310:
URL: https://github.com/apache/hive/pull/2310#issuecomment-846543650
> ... continued...
>
> That is to say:
>
> ```java
> LOG.info("New Final Path: FS " + fsp.finalPaths[filesIdx]);
> LOG.info("New Final Path: FS {}", fsp.finalPaths[filesIdx]);
> ```
>
> These two statements, will always produce the same output (as INFO is on
by default in every production environment under the sun). However, the second
one will always have the overhead of having to find the anchor in the format
string and then replace it with the value. The first example, there is simply a
string concatenation that occurs. This will be faster and I don't find this log
particularly hard to read.
Hey @belugabehr thanks for the details! I agree adding anchors on all INFO
statements wont add and perf value here considering that INFO is the default
log lvl -- I was mostly thinking consistency when posting the comments,
eventually using a single logging style but maybe thats out of the scope of
this PR.
Happy to +1 as is and maybe discuss this as part of a new ticket
--
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: 600919)
Time Spent: 3.5h (was: 3h 20m)
> 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: 3.5h
> 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)