Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Commit

Permalink
Updating debug print (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
ranrib authored Jun 4, 2020
1 parent ceb7445 commit 17de498
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion epsagon/tracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ func (tracer *epsagonTracer) sendTraces() {
}
sendTimeout, err := time.ParseDuration(tracer.Config.SendTimeout)
if err != nil {
log.Printf("Epsagon: Encountered an error while parsing send timeout: %v, using '1s'\n", err)
if tracer.Config.Debug {
log.Printf("Epsagon: Encountered an error while parsing send timeout: %v, using '1s'\n", err)
}
sendTimeout, _ = time.ParseDuration("1s")
}

Expand Down

0 comments on commit 17de498

Please sign in to comment.