Skip to content

Commit

Permalink
log: do not add stack to error log (#1532)
Browse files Browse the repository at this point in the history
  • Loading branch information
nolouch committed Jul 10, 2019
1 parent 9831615 commit e3bf84d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import (
"github.com/pingcap/pd/server/namespace"
"github.com/pkg/errors"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
)

// Config is the pd server configuration.
Expand Down Expand Up @@ -762,7 +763,7 @@ func ParseUrls(s string) ([]url.URL, error) {

// SetupLogger setup the logger.
func (c *Config) SetupLogger() error {
lg, p, err := log.InitLogger(&c.Log)
lg, p, err := log.InitLogger(&c.Log, zap.AddStacktrace(zapcore.FatalLevel))
if err != nil {
return err
}
Expand Down

0 comments on commit e3bf84d

Please sign in to comment.