Append logs instead instead overwriting (#2215)
This commit is contained in:
1 parent
bbfef3e832
commit
cc112beb78
3 files changed
+3
-2
No files matched your search
@@ -27,7 +27,7 @@ func init() {
|
||||
|
||||
func run() {
|
||||
if gLogPath != "" {
|
||||
f, err := os.OpenFile(gLogPath, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0o600)
|
||||
f, err := os.OpenFile(gLogPath, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0o600)
|
||||
if err != nil {
|
||||
log.Fatalf("failed to open log file: %s", err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user