added system log
parent
e10510b56c
commit
c9b50db0d1
|
@ -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."},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue