Append logs instead instead overwriting (#2215)

This commit is contained in:
CatsDeservePets authored and GitHub committed 2025-10-20 23:48:44 +02:00
1 parent bbfef3e832
commit cc112beb78
3 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ var (
func serve() {
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)
}