Browse Source

set cscli log timestamp to 24h (#1917)

mmetc 2 years ago
parent
commit
6c19beb937
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cmd/crowdsec-cli/main.go

+ 1 - 1
cmd/crowdsec-cli/main.go

@@ -52,7 +52,7 @@ func initConfig() {
 	} else if err_lvl {
 	} else if err_lvl {
 		log.SetLevel(log.ErrorLevel)
 		log.SetLevel(log.ErrorLevel)
 	}
 	}
-	logFormatter := &log.TextFormatter{TimestampFormat: "02-01-2006 03:04:05 PM", FullTimestamp: true}
+	logFormatter := &log.TextFormatter{TimestampFormat: "02-01-2006 15:04:05", FullTimestamp: true}
 	log.SetFormatter(logFormatter)
 	log.SetFormatter(logFormatter)
 
 
 	if !inSlice(os.Args[1], NoNeedConfig) {
 	if !inSlice(os.Args[1], NoNeedConfig) {