diff --git a/logs/file.go b/logs/file.go index 990a76d8..cdea1457 100644 --- a/logs/file.go +++ b/logs/file.go @@ -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