From 26cc040f9aa2dd354ff623a7c6c38d2883817315 Mon Sep 17 00:00:00 2001 From: JessonChan Date: Tue, 1 Mar 2016 17:00:24 +0800 Subject: [PATCH] daily log name dot fixed --- logs/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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