Procházet zdrojové kódy

更新fileaccess,修复bug

lijian před 6 roky
rodič
revize
ce017cb8fe
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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)