Skip to content

Commit dc954a2

Browse files
committed
Fix: backup log file time format.
1 parent ac1baf1 commit dc954a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

file_writer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929
const dirPerm os.FileMode = 0766
3030
const filePerm os.FileMode = 0666
3131
const fileFlag = os.O_WRONLY | os.O_CREATE | os.O_APPEND
32-
const backupTimeFormat = "2006-01-02T15:04:05.000"
32+
const backupTimeFormat = "2006-01-02T15-04-05.000"
3333

3434
// NewFileWriter creates and returns an io.WriteCloser instance from the given path.
3535
// The max parameter is used to limit the maximum size of the log file, if it is 0, the

0 commit comments

Comments
 (0)