Skip to content

Commit

Permalink
swarm/tracing: disable stdout logging for opentracing (ethereum#17931)
Browse files Browse the repository at this point in the history
  • Loading branch information
nonsense authored Oct 17, 2018
1 parent 4466c7b commit 4e693ad
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions swarm/tracing/tracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"github.com/ethereum/go-ethereum/log"
jaeger "github.com/uber/jaeger-client-go"
jaegercfg "github.com/uber/jaeger-client-go/config"
jaegerlog "github.com/uber/jaeger-client-go/log"
cli "gopkg.in/urfave/cli.v1"
)

Expand Down Expand Up @@ -85,13 +84,13 @@ func initTracer(endpoint, svc string) (closer io.Closer) {
// Example logger and metrics factory. Use github.com/uber/jaeger-client-go/log
// and github.com/uber/jaeger-lib/metrics respectively to bind to real logging and metrics
// frameworks.
jLogger := jaegerlog.StdLogger
//jLogger := jaegerlog.StdLogger
//jMetricsFactory := metrics.NullFactory

// Initialize tracer with a logger and a metrics factory
closer, err := cfg.InitGlobalTracer(
svc,
jaegercfg.Logger(jLogger),
//jaegercfg.Logger(jLogger),
//jaegercfg.Metrics(jMetricsFactory),
//jaegercfg.Observer(rpcmetrics.NewObserver(jMetricsFactory, rpcmetrics.DefaultNameNormalizer)),
)
Expand Down

0 comments on commit 4e693ad

Please sign in to comment.