From d054fb63a9118260ce8b32d19bf80b9b4b431e0b Mon Sep 17 00:00:00 2001 From: Redume Date: Thu, 15 Dec 2022 21:08:36 +0300 Subject: [PATCH] The logs now show only the time (hh:mm:ss) --- functions/logger.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/logger.go b/functions/logger.go index 65bf736..c193277 100644 --- a/functions/logger.go +++ b/functions/logger.go @@ -59,7 +59,7 @@ func Logger(text string) { lineString = fmt.Sprintf("%d", line) } - _, err = f.Write([]byte(now.Format("Mon Jan 2 15:04:05 2006") + " | " + text + " [" + file + "] [" + lineString + "]\n")) + _, err = f.Write([]byte(now.Format("15:04:05") + " | " + text + " [" + file + "] [" + lineString + "]\n")) if err != nil { panic(err) }