|
|
@@ -281,7 +281,7 @@ func testFileRotate(t *testing.T, fn1, fn2 string, daily, hourly bool) { |
|
|
|
fw.hourlyOpenDate = fw.hourlyOpenTime.Day() |
|
|
|
} |
|
|
|
|
|
|
|
fw.WriteMsg(time.Now(), "this is a msg for test", LevelDebug) |
|
|
|
fw.WriteMsg(time.Now(), "this is a msg for test", LevelDebug, "", "dev") |
|
|
|
|
|
|
|
for _, file := range []string{fn1, fn2} { |
|
|
|
_, err := os.Stat(file) |
|
|
|