@@ -1,4 +1,7 @@
[logger]
- path = "./log"
+ path = "./reqlog"
+ file = "reqlog"
level = "all"
- stdout = false
+ stdout = false
+ rotateSize = "10M"
+ rotateBackupLimit = 1
@@ -98,9 +98,7 @@ func (g *Gateway) handler(r *http.Request, servicePath string) (meta map[string]
// 处理Auth
token := getRequestToken(r)
- if token != "" {
- xc.Auth(token)
- }
+ xc.Auth(token)
if mediaType == gin.MIMEMultipartPOSTForm {
formValues, formFile, err := MultipartRequest2RpcxRequest(r)