Repository: hbase Updated Branches: refs/heads/0.94 017bb0f6a -> cbc08ceed
HBASE-12020 String formatting on each RPC Invoke. (Vladimir Rodionov) Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/cbc08cee Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/cbc08cee Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/cbc08cee Branch: refs/heads/0.94 Commit: cbc08ceed5f0b1bab4adc0aa37dc00495c249634 Parents: 017bb0f Author: Lars Hofhansl <la...@apache.org> Authored: Fri Sep 19 10:11:33 2014 -0700 Committer: Lars Hofhansl <la...@apache.org> Committed: Fri Sep 19 10:11:33 2014 -0700 ---------------------------------------------------------------------- src/main/java/org/apache/hadoop/hbase/ipc/ExecRPCInvoker.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/cbc08cee/src/main/java/org/apache/hadoop/hbase/ipc/ExecRPCInvoker.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/hadoop/hbase/ipc/ExecRPCInvoker.java b/src/main/java/org/apache/hadoop/hbase/ipc/ExecRPCInvoker.java index b8b290c..8a3a45f 100644 --- a/src/main/java/org/apache/hadoop/hbase/ipc/ExecRPCInvoker.java +++ b/src/main/java/org/apache/hadoop/hbase/ipc/ExecRPCInvoker.java @@ -78,8 +78,10 @@ public class ExecRPCInvoker implements InvocationHandler { }; ExecResult result = callable.withRetries(); this.regionName = result.getRegionName(); - LOG.debug("Result is region="+ Bytes.toStringBinary(regionName) + + if(LOG.isDebugEnabled()){ + LOG.debug("Result is region="+ Bytes.toStringBinary(regionName) + ", value="+result.getValue()); + } return result.getValue(); } @@ -89,4 +91,4 @@ public class ExecRPCInvoker implements InvocationHandler { public byte[] getRegionName() { return regionName; } -} \ No newline at end of file +}