mirror of https://github.com/tidwall/tile38.git
fix: disable caller
This commit is contained in:
parent
1f7777a4ad
commit
bd5f8ddccd
|
@ -36,8 +36,12 @@ func SetOutput(w io.Writer) {
|
|||
func Build(c string) error {
|
||||
if c == "" {
|
||||
zcfg := zap.NewProductionConfig()
|
||||
|
||||
// to be able to filter with Tile38 levels
|
||||
zcfg.Level.SetLevel(zap.DebugLevel)
|
||||
// disable caller because caller is always log.go
|
||||
zcfg.DisableCaller = true
|
||||
|
||||
core, err := zcfg.Build()
|
||||
if err != nil {
|
||||
return err
|
||||
|
@ -50,8 +54,12 @@ func Build(c string) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// to be able to filter with Tile38 levels
|
||||
zcfg.Level.SetLevel(zap.DebugLevel)
|
||||
// disable caller because caller is always log.go
|
||||
zcfg.DisableCaller = true
|
||||
|
||||
core, err := zcfg.Build()
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in New Issue