소스 검색

fix: process does not exist when panic

Yeuoly 6 달 전
부모
커밋
d60f60ba09
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      internal/utils/log/log.go

+ 1 - 0
internal/utils/log/log.go

@@ -37,6 +37,7 @@ func writeLog(level string, format string, stdout bool, v ...interface{}) {
 			logger.Output(3, LOG_LEVEL_ERROR_COLOR+format+LOG_LEVEL_COLOR_END)
 		} else if level == "PANIC" {
 			logger.Output(3, LOG_LEVEL_ERROR_COLOR+format+LOG_LEVEL_COLOR_END)
+			panic(fmt.Sprintf(format, v...))
 		}
 	}
 }