added time

main
alex 2023-11-13 20:10:31 +01:00
parent 567b0b3c1d
commit c84664fece
1 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@ import (
"jannex/log-manager/modules/structs" "jannex/log-manager/modules/structs"
"jannex/log-manager/modules/utils" "jannex/log-manager/modules/utils"
"jannex/log-manager/routers/router" "jannex/log-manager/routers/router"
"time"
"git.ex.umbach.dev/Alex/roese-utils/rsconfig" "git.ex.umbach.dev/Alex/roese-utils/rsconfig"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
@ -68,7 +69,7 @@ func main() {
loghandler.AddLog(structs.LogBody{ loghandler.AddLog(structs.LogBody{
Type: "logserver", Type: "logserver",
Logs: []string{"Log Server started"}, Logs: []string{time.Now().Format("02-01-2006 15:04:05") + "Log Server started"},
}) })
app.Listen(config.Cfg.Host + ":" + config.Cfg.Port) app.Listen(config.Cfg.Host + ":" + config.Cfg.Port)