소스 검색

更新fileaccess,修复bug

lijian 6 년 전
부모
커밋
ce017cb8fe
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)