The logs now show only the time (hh:mm:ss)

This commit is contained in:
Данил 2022-12-15 21:08:36 +03:00
parent 5f41bfcc78
commit d054fb63a9

View file

@ -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)
}