Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: uber-go/zap
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 74cbeb75e89051f513b81c685295552b24bb868e
Choose a base ref
..
head repository: uber-go/zap
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: f7b408bf3853beb3f2d6b1d33d823a27a1b7f35b
Choose a head ref
Showing with 1 addition and 2 deletions.
  1. +1 −2 zapcore/field.go
3 changes: 1 addition & 2 deletions zapcore/field.go
Original file line number Diff line number Diff line change
@@ -22,7 +22,6 @@ package zapcore

import (
"bytes"
"errors"
"fmt"
"math"
"reflect"
@@ -204,7 +203,7 @@ func addFields(enc ObjectEncoder, fields []Field) {
func encodeStringer(key string, stringer interface{}, enc ObjectEncoder) (err error) {
defer func() {
if v := recover(); v != nil {
err = errors.New(fmt.Sprintf("PANIC=%v", v))
err = fmt.Errorf("PANIC=%v", v)
}
}()