Commit 08ff2236 by 周杭

方法增加try catch

1 parent 3e7ac5e2
...@@ -24,9 +24,14 @@ public class BuryingPointController { ...@@ -24,9 +24,14 @@ public class BuryingPointController {
@Operation(description = "业务埋点上报") @Operation(description = "业务埋点上报")
@PostMapping("/report") @PostMapping("/report")
public R report(@RequestBody String buryingPoint) { public R report(@RequestBody String buryingPoint) {
log.info("platform-execute业务埋点接收:{}",buryingPoint); try {
msgProducer.topicSend(RabbitConfig.DATA_REPORT_EXCHANGE_NAME,RabbitConfig.DATA_REPORT_TOPIC,buryingPoint); log.info("platform-execute业务埋点接收:{}",buryingPoint);
return R.ok(); msgProducer.topicSend(RabbitConfig.DATA_REPORT_EXCHANGE_NAME,RabbitConfig.DATA_REPORT_TOPIC,buryingPoint);
return R.ok();
} catch (Exception e) {
log.error(e.getMessage(),e);
throw new RuntimeException(e);
}
} }
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!