daily log name dot fixed

This commit is contained in:
JessonChan 2016-03-01 17:00:24 +08:00
parent 9da4d1d847
commit 26cc040f9a
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ func (w *fileLogWriter) doRotate(logTime time.Time) error {
_, err = os.Lstat(fName)
}
} else {
fName = fmt.Sprintf("%s.%s.%s", w.fileNameOnly, logTime.Format("2006-01-02"), w.suffix)
fName = fmt.Sprintf("%s.%s%s", w.fileNameOnly, logTime.Format("2006-01-02"), w.suffix)
_, err = os.Lstat(fName)
}
// return error if the last file checked still existed