Explorar el Código

fix: process does not exist when panic

Yeuoly hace 6 meses
padre
commit
d60f60ba09
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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...))
 		}
 	}
 }