Browse Source

delete request id

Paul 4 years ago
parent
commit
dd2d8b002f
1 changed files with 0 additions and 8 deletions
  1. 0
    8
      request/request.go

+ 0
- 8
request/request.go View File

@@ -57,14 +57,6 @@ func Fail(ctx *gin.Context, err error) bool {
57 57
 		logrus.Error(err)
58 58
 	}
59 59
 
60
-	if requestID, found := ctx.Get("request_id"); found {
61
-		ctx.JSON(status, gin.H{
62
-			"msg": fmt.Sprintf("request_id: %s | %s",
63
-				requestID.(string),
64
-				err.Error())})
65
-		return true
66
-	}
67
-
68 60
 	ctx.JSON(status, gin.H{"msg": err.Error()})
69 61
 
70 62
 	return true