added system log

main
alex 2023-09-16 11:35:04 +02:00
parent e10510b56c
commit c9b50db0d1
2 changed files with 16 additions and 14 deletions

View File

@ -212,7 +212,7 @@ func CheckForDeletableLogs() {
AddLog(structs.LogBody{ AddLog(structs.LogBody{
Type: "system", Type: "system",
Logs: []string{"I "+ utils.GetTime() + "LogManager: Deleted log file " + path + " because it was older than " + strconv.Itoa(daysToKeepLogs) + " days."}, Logs: []string{"I " + utils.GetTime() + "LogManager: Deleted log file " + path + " because it was older than " + strconv.Itoa(daysToKeepLogs) + " days."},
}) })
} }
} }

View File

@ -1,6 +1,8 @@
package structs package structs
import "github.com/google/uuid" import (
"github.com/google/uuid"
)
type SSEClient struct { type SSEClient struct {
MessageChannel chan SSEClientChannelMessage MessageChannel chan SSEClientChannelMessage