fix log path bug

v4
wangyiyang 6 years ago
parent 8b41f8140b
commit b5969895f7
  1. 2
      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,

Loading…
Cancel
Save