Skip to content

Commit

Permalink
use fmt instead of spew to prevent race conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
mralves committed Dec 20, 2018
1 parent 5808d91 commit c3f337d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package tracer
import (
"bytes"
"fmt"
"github.com/davecgh/go-spew/spew"
"io"
"os"
"regexp"
Expand Down Expand Up @@ -34,7 +33,7 @@ func DefaultStringer(value interface{}) string {
} else if err, ok := value.(error); ok {
return err.Error()
}
rep := spew.Sprintf("%+v", value)
rep := fmt.Sprintf("%+v", value)
return pointerPattern.ReplaceAllStringFunc(rep, func(str string) string {
return ""
})
Expand Down

0 comments on commit c3f337d

Please sign in to comment.