htrace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmcc...@apache.org
Subject incubator-htrace git commit: HTRACE-258. Add "created Tracer..." log at trace level to Tracer.java (cmccabe)
Date Fri, 18 Sep 2015 23:27:01 GMT
Repository: incubator-htrace
Updated Branches:
  refs/heads/master ee4eeaa34 -> a20b7351e


HTRACE-258. Add "created Tracer..." log at trace level to Tracer.java (cmccabe)


Project: http://git-wip-us.apache.org/repos/asf/incubator-htrace/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-htrace/commit/a20b7351
Tree: http://git-wip-us.apache.org/repos/asf/incubator-htrace/tree/a20b7351
Diff: http://git-wip-us.apache.org/repos/asf/incubator-htrace/diff/a20b7351

Branch: refs/heads/master
Commit: a20b7351e7f309a5f895172fabb2e2d5f5b8313c
Parents: ee4eeaa
Author: Colin P. Mccabe <cmccabe@apache.org>
Authored: Fri Sep 18 16:24:29 2015 -0700
Committer: Colin P. Mccabe <cmccabe@apache.org>
Committed: Fri Sep 18 16:26:55 2015 -0700

----------------------------------------------------------------------
 htrace-core/src/main/java/org/apache/htrace/core/Tracer.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-htrace/blob/a20b7351/htrace-core/src/main/java/org/apache/htrace/core/Tracer.java
----------------------------------------------------------------------
diff --git a/htrace-core/src/main/java/org/apache/htrace/core/Tracer.java b/htrace-core/src/main/java/org/apache/htrace/core/Tracer.java
index 2a6d31e..39d972d 100644
--- a/htrace-core/src/main/java/org/apache/htrace/core/Tracer.java
+++ b/htrace-core/src/main/java/org/apache/htrace/core/Tracer.java
@@ -161,6 +161,9 @@ public class Tracer implements Closeable {
           samplers.toArray(new Sampler[samplers.size()]));
       tracerPool.addTracer(tracer);
       loadSpanReceivers();
+      if (LOG.isTraceEnabled()) {
+        LOG.trace("Created " + tracer + " for " + name);
+      }
       return tracer;
     }
   }


Mime
View raw message