henrib commented on code in PR #4749:
URL: https://github.com/apache/hive/pull/4749#discussion_r1347378509


##########
common/src/java/org/apache/hadoop/hive/ql/log/PerfLogger.java:
##########
@@ -131,7 +128,9 @@ public static void setPerfLogger(PerfLogger 
resetPerfLogger) {
   public void perfLogBegin(String callerName, String method) {
     long startTime = System.currentTimeMillis();
     startTimes.put(method, Long.valueOf(startTime));
-    LOG.debug("<PERFLOG method={} from={}>", method, callerName);
+    if (LOG.isDebugEnabled()) {

Review Comment:
   It is not necessary (force of habit I guess) and it makes the code similar 
to what's going on in perfLogEnd; reverting.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to