Pārlūkot izejas kodu

更新fileaccess,修复bug

lijian 6 gadi atpakaļ
vecāks
revīzija
ce017cb8fe
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      pkg/server/log.go

+ 1 - 1
pkg/server/log.go

@@ -11,7 +11,7 @@ var Log *logrus.Entry
 func initLog(name string, level string) error {
 	if Log == nil {
 		// Log as JSON instead of the default ASCII formatter.
-		logrus.SetFormatter(&logrus.TextFormatter{})
+		logrus.SetFormatter(&logrus.JSONFormatter{})
 
 		// Output to stderr instead of stdout, could also be a file.
 		// logrus.SetOutput(os.Stderr)