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.
|
// 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 {
|
if err != nil {
|
||||||
log.Println("Failed to open log file: %s %v", l.Path, err)
|
log.Println("Failed to open log file: %s %v", l.Path, err)
|
||||||
} else {
|
} else {
|
||||||
|
2
main.go
2
main.go
@ -6,7 +6,7 @@ const (
|
|||||||
serviceDisplayName = "Virtual VXLAN"
|
serviceDisplayName = "Virtual VXLAN"
|
||||||
serviceVendor = "com.mrgeckosmedia"
|
serviceVendor = "com.mrgeckosmedia"
|
||||||
serviceDescription = "Virtual VXLAN using TUN interfaces"
|
serviceDescription = "Virtual VXLAN using TUN interfaces"
|
||||||
serviceVersion = "0.1.6"
|
serviceVersion = "0.1.7"
|
||||||
defaultConfigFile = "config.yaml"
|
defaultConfigFile = "config.yaml"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user