Commit 08ff2236 by 周杭

方法增加try catch

1 parent 3e7ac5e2
......@@ -24,9 +24,14 @@ public class BuryingPointController {
@Operation(description = "业务埋点上报")
@PostMapping("/report")
public R report(@RequestBody String buryingPoint) {
try {
log.info("platform-execute业务埋点接收:{}",buryingPoint);
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!