Skip to content

Commit

Permalink
Update Jaeger reporter to use logger
Browse files Browse the repository at this point in the history
Update Jaeger reporter to use proper log instead of println statement
  • Loading branch information
christian-morin committed Jul 5, 2021
1 parent 142da1e commit 34a5492
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package io.quarkus.jaeger.runtime.graal;

import org.jboss.logging.Logger;

import com.oracle.svm.core.annotate.Substitute;
import com.oracle.svm.core.annotate.TargetClass;

Expand All @@ -10,6 +12,8 @@
@TargetClass(className = "io.jaegertracing.internal.reporters.LoggingReporter")
final public class Target_LoggingReporter implements Reporter {

private static final Logger LOG = Logger.getLogger(Target_LoggingReporter.class);

@Substitute
public Target_LoggingReporter() {

Expand All @@ -18,7 +22,7 @@ public Target_LoggingReporter() {
@Substitute
@Override
public void report(JaegerSpan span) {
System.err.println("--- not logging: " + span);
LOG.infof("Span reported: %s", span);
}

@Substitute
Expand Down

0 comments on commit 34a5492

Please sign in to comment.