Explorar o código

api post 异常时 打印入参报文

wuxw7 %!s(int64=7) %!d(string=hai) anos
pai
achega
1fcafc4ce3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Api/src/main/java/com/java110/api/rest/RestApi.java

+ 1 - 1
Api/src/main/java/com/java110/api/rest/RestApi.java

@@ -61,7 +61,7 @@ public class RestApi extends BaseController {
             headers.put(CommonConstant.HTTP_METHOD,CommonConstant.HTTP_METHOD_POST);
             headers.put(CommonConstant.HTTP_METHOD,CommonConstant.HTTP_METHOD_POST);
             responseEntity = apiServiceSMOImpl.service(postInfo,headers);
             responseEntity = apiServiceSMOImpl.service(postInfo,headers);
         }catch (Throwable e){
         }catch (Throwable e){
-            logger.error("请求post 方法["+service+"]失败:",e);
+            logger.error("请求post 方法["+service+"]失败:"+postInfo,e);
             return new ResponseEntity<String>("请求发生异常,"+e.getMessage(),HttpStatus.INTERNAL_SERVER_ERROR);
             return new ResponseEntity<String>("请求发生异常,"+e.getMessage(),HttpStatus.INTERNAL_SERVER_ERROR);
         }
         }