From e5b71c6ea4785750dbdaab6076a1bb665ee912be Mon Sep 17 00:00:00 2001 From: wangyiyang Date: Thu, 28 Mar 2019 17:57:13 +0800 Subject: [PATCH 1/2] 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, From f5ce2a09d190cf8bedcd878cde69795eacd486cf Mon Sep 17 00:00:00 2001 From: wangyiyang Date: Thu, 28 Mar 2019 18:04:42 +0800 Subject: [PATCH 2/2] 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 6231db1..b556938 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%s.log", conf.Options.LogFile, conf.Options.Id) + //conf.Options.LogFile = fmt.Sprintf("%s.log", conf.Options.Id) utils.LogRotater = &logRotate.Logger{ Filename: conf.Options.LogFile,