Skip to content

Commit

Permalink
Merge pull request #53 from ipfs/fix/unpretty-logs
Browse files Browse the repository at this point in the history
uglify the (event) logs
  • Loading branch information
Stebalien committed Oct 31, 2018
2 parents 4b03637 + c768e5d commit 53fe925
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion log.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,6 @@ func (el *eventLogger) Event(ctx context.Context, event string, metadata ...Logg
var buf bytes.Buffer
encoder := json.NewEncoder(&buf)
encoder.SetEscapeHTML(false)
encoder.SetIndent("", " ")
err = encoder.Encode(accum)
if err != nil {
el.Errorf("ERROR FORMATTING EVENT ENTRY: %s", err)
Expand Down
1 change: 0 additions & 1 deletion tracer/recorder.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ func (r *LoggableSpanRecorder) RecordSpan(span RawSpan) {
var buf bytes.Buffer
encoder := json.NewEncoder(&buf)
encoder.SetEscapeHTML(false)
encoder.SetIndent("", " ")
err := encoder.Encode(spanlog)
if err != nil {
fmt.Fprintf(os.Stderr, "ERROR FORMATTING SPAN ENTRY: %s\n", err)
Expand Down

0 comments on commit 53fe925

Please sign in to comment.