From 6d12af4f484761dfcc884e76ef53658872faceae Mon Sep 17 00:00:00 2001 From: gmhdbjd Date: Fri, 4 Sep 2020 18:39:22 +0800 Subject: [PATCH] add log --- dm/master/config.go | 1 + 1 file changed, 1 insertion(+) diff --git a/dm/master/config.go b/dm/master/config.go index a444b0291e..c44a66a65b 100644 --- a/dm/master/config.go +++ b/dm/master/config.go @@ -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)) }