fix: closing some issues from sonarqube
Some checks failed
Tests / Run Go Tests (push) Failing after 59s

This commit is contained in:
2026-02-15 18:49:29 +01:00
parent 10df10a606
commit b4bf550863
4 changed files with 4 additions and 13 deletions

View File

@@ -17,8 +17,8 @@ type FileLog struct {
var Logs map[string]FileLog = make(map[string]FileLog)
func NewAudit() (i *log.Logger, close func() error) {
LOG_FILE := "logs/" + time.Now().Format(time.DateOnly) + ".log"
logFile, err := os.OpenFile(LOG_FILE, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
logName := "logs/" + time.Now().Format(time.DateOnly) + ".log"
logFile, err := os.OpenFile(logName, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
if err != nil {
log.Panic(err)
}