Skip to content

Commit

Permalink
Update zap logger setting
Browse files Browse the repository at this point in the history
Signed-off-by: 'Tanjin Xu' <[email protected]>
  • Loading branch information
tanjinx committed Apr 20, 2024
1 parent b878269 commit 2f253d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions go/vt/logutil/vts_logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ func SetVTStructureLogger(conf *zap.Config) (vtSLogger *zap.SugaredLogger, err e
// Use the passed configuration instead of the default configuration
if conf == nil {
defaultProdConf := zap.NewProductionConfig()
defaultProdConf.Level.SetLevel(zap.WarnLevel)
conf = &defaultProdConf
}

Expand Down

0 comments on commit 2f253d1

Please sign in to comment.