Skip to content

Commit

Permalink
Merge pull request #132 from malafeev/no_prints
Browse files Browse the repository at this point in the history
Remove print statements
  • Loading branch information
safris authored Jul 24, 2019
2 parents 30f48e7 + de40bbf commit f988221
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ public class ThreadAgentIntercept {
private static final ThreadLocal<Scope> scopeHandler = new ThreadLocal<>();

static {
System.out.println("Current class loader: " + ThreadAgentIntercept.class.getClassLoader());
try {
if (ThreadAgentIntercept.class.getClassLoader() != null)
cache = (Map<Long,Span>)BootProxyClassLoader.INSTANCE.loadClass(ThreadAgentIntercept.class.getName()).getField("cache").get(null);
Expand All @@ -47,13 +46,11 @@ public static void start(final Object thiz) {
if (span != null)
cache.put(thread.getId(), span);

System.out.println("start(" + thiz + " " + thread.getId() + "): " + span + " " + System.identityHashCode(cache) + " " + ThreadAgentRule.class.getClassLoader());
}

public static void runEnter(final Object thiz) {
final Thread thread = (Thread)thiz;
final Span span = cache.get(thread.getId());
System.out.println("enter(" + thiz + " " + thread.getId() + "): " + span + " " + System.identityHashCode(cache) + " " + ThreadAgentRule.class.getClassLoader());
if (span != null) {
final Scope scope = GlobalTracer.get().activateSpan(span);
scopeHandler.set(scope);
Expand All @@ -63,7 +60,6 @@ public static void runEnter(final Object thiz) {
public static void runExit(final Object thiz) {
final Thread thread = (Thread)thiz;
final Span span = cache.remove(thread.getId());
System.out.println("exit(" + thiz + " " + thread.getId() + "): " + span + " " + System.identityHashCode(cache) + " " + ThreadAgentRule.class.getClassLoader());
final Scope scope = scopeHandler.get();
if (scope != null)
scope.close();
Expand Down

0 comments on commit f988221

Please sign in to comment.