Package list golang-github-go-kit-kit / e80c5e3
log/experimental_level: fix tests Peter Bourgon 4 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
131131 logger = log.NewContext(logger).With("caller", log.DefaultCaller)
132132
133133 level.Info(logger).Log("foo", "bar")
134 if want, have := `caller=level_test.go:134 level=info foo=bar`, strings.TrimSpace(buf.String()); want != have {
134 if want, have := `level=info caller=level_test.go:134 foo=bar`, strings.TrimSpace(buf.String()); want != have {
135135 t.Errorf("want %q, have %q", want, have)
136136 }
137137 }