fix: closing some issues from sonarqube
Some checks failed
Tests / Run Go Tests (push) Failing after 59s
Some checks failed
Tests / Run Go Tests (push) Failing after 59s
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user