Change log to use append.
This commit is contained in:
parent
7a4fc3491a
commit
74a6b09b97
@ -526,7 +526,7 @@ func (l *LogConfig) Apply() {
|
||||
}
|
||||
|
||||
// Set the log to save to the logpath.
|
||||
f, err := os.OpenFile(l.Path, os.O_RDWR|os.O_CREATE, 0644)
|
||||
f, err := os.OpenFile(l.Path, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0644)
|
||||
if err != nil {
|
||||
log.Println("Failed to open log file: %s %v", l.Path, err)
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user