From b5969895f78f7345fbd8fab9fdef9669cb0fa54e Mon Sep 17 00:00:00 2001 From: wangyiyang Date: Thu, 28 Mar 2019 17:57:13 +0800 Subject: [PATCH] fix log path bug --- src/redis-shake/main/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redis-shake/main/main.go b/src/redis-shake/main/main.go index 373584f..6231db1 100644 --- a/src/redis-shake/main/main.go +++ b/src/redis-shake/main/main.go @@ -204,7 +204,7 @@ func sanitizeOptions(tp string) error { } if conf.Options.LogFile != "" { - conf.Options.LogFile = fmt.Sprintf("%s.log", conf.Options.Id) + conf.Options.LogFile = fmt.Sprintf("%s%s.log", conf.Options.LogFile, conf.Options.Id) utils.LogRotater = &logRotate.Logger{ Filename: conf.Options.LogFile,