Merge pull request #13 from wangyiyang/develop

如果LogFile不为空的时候覆盖会使LogFile设置无效
v4
Vinllen Chen 6 years ago committed by GitHub
commit 735afbb99c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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.log", conf.Options.Id)
utils.LogRotater = &logRotate.Logger{
Filename: conf.Options.LogFile,

Loading…
Cancel
Save