Änderung des Zeitstempels beim Logging
All checks were successful
release-tag / release-image (push) Successful in 44s
All checks were successful
release-tag / release-image (push) Successful in 44s
This commit is contained in:
2
main.go
2
main.go
@@ -183,7 +183,7 @@ var SysLog = []string{}
|
|||||||
|
|
||||||
func WriteLog(a ...any) error {
|
func WriteLog(a ...any) error {
|
||||||
if DEBUG {
|
if DEBUG {
|
||||||
fmt.Println(time.Now().String(), a)
|
fmt.Println(time.Now().Format("2006-01-02_15-04-05"), a)
|
||||||
}
|
}
|
||||||
SysLog = append(SysLog, fmt.Sprintf("%s %s", time.Now().String(), a))
|
SysLog = append(SysLog, fmt.Sprintf("%s %s", time.Now().String(), a))
|
||||||
// JSON konvertieren
|
// JSON konvertieren
|
||||||
|
Reference in New Issue
Block a user