@@ -4,6 +4,7 @@ import (
44 "fmt"
55 "log/slog"
66 "os"
7+
78 // "path/filepath"
89 "encoding/json"
910 "runtime"
@@ -22,6 +23,7 @@ func getCaller() string {
2223 }
2324 return caller
2425}
26+
2527func Info(msg string, args ...any) {
2628 source := getCaller()
2729 slog.Info(msg, append([]any{"source", source}, args...)...)
@@ -122,7 +124,7 @@ func AppendToSessionLogFile(sessionId string, filename string, content string) s
122124
123125 filePath := fmt.Sprintf("%s/%s", sessionPath, filename)
124126
125− f, err := os.OpenFile(filePath, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
127+ f, err := os.OpenFile(filePath, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0o644)
126128 if err != nil {
127129 Error("Failed to open session log file", "filepath", filePath, "error", err)
128130 return ""