Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
GMHDBJD committed Sep 4, 2020
1 parent d653065 commit 6d12af4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dm/master/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ func genEmbedEtcdConfigWithLogger(logLevel string) *embed.Config {
logger := log.L().WithFields(zap.String("component", "embed etcd"))
// if logLevel is info, set etcd log level to WARN to reduce log
if strings.ToLower(logLevel) == "info" {
log.L().Info("Set log level of etcd to `warn`, if you want to log more message about etcd, change log-level to `debug` in master configuration file")
logger.Logger = logger.WithOptions(zap.IncreaseLevel(zap.WarnLevel))
}

Expand Down

0 comments on commit 6d12af4

Please sign in to comment.