From c84664fecebeb9504ba4cd6e590bcffafdfcd7d1 Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 13 Nov 2023 20:10:31 +0100 Subject: [PATCH] added time --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 1fbaf96..81d279f 100644 --- a/main.go +++ b/main.go @@ -20,6 +20,7 @@ import ( "jannex/log-manager/modules/structs" "jannex/log-manager/modules/utils" "jannex/log-manager/routers/router" + "time" "git.ex.umbach.dev/Alex/roese-utils/rsconfig" "github.com/gofiber/fiber/v2" @@ -68,7 +69,7 @@ func main() { loghandler.AddLog(structs.LogBody{ 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)