加日志

This commit is contained in:
2023-06-01 11:13:43 +08:00
parent 589ec92b5e
commit 6672cb3659

View File

@@ -65,13 +65,13 @@ public class JumpController extends BaseController {
PileConnectorVO vo = pileService.getConnectorDetail(pileConnectorCode);
response = new RestApiResponse<>(vo);
} catch (BusinessException e) {
logger.warn("app-xcx-h5查询充电枪口详情 warn", e);
logger.warn("app-xcx-h5查询充电枪口详情 warn param:{}", pileConnectorCode, e);
response = new RestApiResponse<>(e.getCode(), e.getMessage());
} catch (Exception e) {
logger.error("app-xcx-h5查询充电枪口详情 error", e);
logger.error("app-xcx-h5查询充电枪口详情 error param:{}", pileConnectorCode, e);
response = new RestApiResponse<>(ReturnCodeEnum.CODE_GET_PILE_DETAIL_ERROR);
}
logger.info("app-xcx-h5查询充电枪口详情 result:{}", JSONObject.toJSONString(response));
logger.info("app-xcx-h5查询充电枪口详情 param:{} result:{}", pileConnectorCode, JSONObject.toJSONString(response));
return response;
}