Clean current output file name (#304)

This commit is contained in:
Marc Lallaouret
2016-06-16 22:33:55 +06:00
committed by Leonid Bugaev
parent d0e1858eb3
commit 2c49556b2e
2 changed files with 13 additions and 2 deletions
+2 -2
View File
@@ -11,8 +11,8 @@ import (
"sort"
"strconv"
"strings"
"time"
"sync"
"time"
)
var dateFileNameFuncs = map[string]func() string{
@@ -170,7 +170,7 @@ func (o *FileOutput) filename() string {
}
func (o *FileOutput) updateName() {
o.currentName = o.filename()
o.currentName = filepath.Clean(o.filename())
}
func (o *FileOutput) Write(data []byte) (n int, err error) {