kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject kafka git commit: MINOR: Request log should be enabled by debug level
Date Tue, 01 Aug 2017 16:10:48 GMT
Repository: kafka
Updated Branches:
  refs/heads/0.11.0 86bfbd0ce -> 7e0ec9c76


MINOR: Request log should be enabled by debug level

At some point, we lost the ability to output request
logging at debug level (which is a little less
verbose than at trace level).

Author: Ismael Juma <ismael@juma.me.uk>

Reviewers: Jason Gustafson <jason@confluent.io>

Closes #3595 from ijuma/fix-debug-request-log

(cherry picked from commit 4086db472d08f6dee4d30dda82ab9ff7b67d1a20)
Signed-off-by: Jason Gustafson <jason@confluent.io>


Project: http://git-wip-us.apache.org/repos/asf/kafka/repo
Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/7e0ec9c7
Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/7e0ec9c7
Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/7e0ec9c7

Branch: refs/heads/0.11.0
Commit: 7e0ec9c766435bd10fcc24191b09765f94a248a3
Parents: 86bfbd0
Author: Ismael Juma <ismael@juma.me.uk>
Authored: Tue Aug 1 09:10:28 2017 -0700
Committer: Jason Gustafson <jason@confluent.io>
Committed: Tue Aug 1 09:10:42 2017 -0700

----------------------------------------------------------------------
 core/src/main/scala/kafka/network/RequestChannel.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kafka/blob/7e0ec9c7/core/src/main/scala/kafka/network/RequestChannel.scala
----------------------------------------------------------------------
diff --git a/core/src/main/scala/kafka/network/RequestChannel.scala b/core/src/main/scala/kafka/network/RequestChannel.scala
index bd71340..ad91208 100644
--- a/core/src/main/scala/kafka/network/RequestChannel.scala
+++ b/core/src/main/scala/kafka/network/RequestChannel.scala
@@ -190,7 +190,7 @@ object RequestChannel extends Logging {
         val apiThrottleTimeMs = nanosToMs(responseCompleteTimeNanos - apiRemoteCompleteTimeNanos)
         val responseQueueTimeMs = nanosToMs(responseDequeueTimeNanos - responseCompleteTimeNanos)
         val responseSendTimeMs = nanosToMs(endTimeNanos - responseDequeueTimeNanos)
-        requestLogger.trace("Completed request:%s from connection %s;totalTime:%f,requestQueueTime:%f,localTime:%f,remoteTime:%f,throttleTime:%f,responseQueueTime:%f,sendTime:%f,securityProtocol:%s,principal:%s,listener:%s"
+        requestLogger.debug("Completed request:%s from connection %s;totalTime:%f,requestQueueTime:%f,localTime:%f,remoteTime:%f,throttleTime:%f,responseQueueTime:%f,sendTime:%f,securityProtocol:%s,principal:%s,listener:%s"
           .format(requestDesc(detailsEnabled), connectionId, totalTimeMs, requestQueueTimeMs,
apiLocalTimeMs, apiRemoteTimeMs, apiThrottleTimeMs, responseQueueTimeMs, responseSendTimeMs,
securityProtocol, session.principal, listenerName.value))
       }
     }


Mime
View raw message