* Codebase cleanup
This commit is contained in:
2025-12-09 01:06:38 +00:00
committed by GitHub
parent 7dec532e18
commit d9888f1a56
16 changed files with 39 additions and 25 deletions
+1
View File
@@ -51,6 +51,7 @@ func NewLogger(forwardID, logFile string, maxBodyLen int) (*Logger, error) {
// Log entries are delivered via callbacks to the UI
l.output = io.Discard
} else {
// #nosec G304 -- logFile is from config validation, not arbitrary user input
f, err := os.OpenFile(logFile, os.O_CREATE|os.O_APPEND|os.O_WRONLY, 0600)
if err != nil {
return nil, err