fix: write operation logs with real newlines

This commit is contained in:
OpenClaw Agent
2026-09-21 16:05:27 +08:00
parent 4cf4e92932
commit 7ca454aba5
+1 -1
View File
@@ -34,6 +34,6 @@ func (l *Logger) Write(ip, user, action string) error {
return err return err
} }
defer f.Close() defer f.Close()
_, err = fmt.Fprintf(f, "%s - %s - user(%s) %s\\n", time.Now().Format("2006-01-02 15:04:05"), ip, user, action) _, err = fmt.Fprintf(f, "%s - %s - user(%s) %s\n", time.Now().Format("2006-01-02 15:04:05"), ip, user, action)
return err return err
} }