Skip to content

Commit

Permalink
feat: 移除二次日志打印
Browse files Browse the repository at this point in the history
  • Loading branch information
myml committed Aug 26, 2022
1 parent 25d5d2b commit f78e9db
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion error_handle.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ func ErrorHandle(logger *zap.Logger, customHandle func(c *gin.Context, err error
return
}
// 未知错误再打印一次
logger.Error("InternalServerError", zap.String("requestID", requestID.String()), zap.Error(err))
c.JSON(http.StatusInternalServerError, gin.H{
"code": http.StatusInternalServerError,
"message": "unknown error",
Expand Down

0 comments on commit f78e9db

Please sign in to comment.