err := errors.New("HELLO")
oops.With("error", err).Assertf((err == nil), "Failed connecting to Elasticsearch")
outputs :
panic: Failed connecting to Elasticsearch
goroutine 1 [running]:
github.com/samber/oops.OopsErrorBuilder.Assertf(...)
/tmp/gopath2180193886/pkg/mod/github.com/samber/oops@v1.21.0/builder.go:306
github.com/samber/oops.Assertf(_, {_, _}, {_, _, _})
/tmp/gopath2180193886/pkg/mod/github.com/samber/oops@v1.21.0/oops.go:70 +0x1d8
main.main()
/tmp/sandbox2172285662/prog.go:11 +0x33
Can we have a way, so that key values specified using With also get logged?
outputs :
Can we have a way, so that key values specified using
Withalso get logged?