SendMqAction完善日志打印

pull/13/head
kosmosr 2 years ago
parent 4a1d7affad
commit 352f581435

@ -36,6 +36,9 @@ public class SendMqAction implements BusinessProcess<SendTaskModel> {
@Value("${austin.business.tagId.value}")
private String tagId;
@Value("${austin.mq.pipeline}")
private String mqPipeline;
@Override
public void process(ProcessContext<SendTaskModel> context) {
@ -50,7 +53,7 @@ public class SendMqAction implements BusinessProcess<SendTaskModel> {
}
} catch (Exception e) {
context.setNeedBreak(true).setResponse(BasicResultVO.fail(RespStatusEnum.SERVICE_ERROR));
log.error("send kafka fail! e:{},params:{}", Throwables.getStackTraceAsString(e)
log.error("send {} fail! e:{},params:{}", mqPipeline, Throwables.getStackTraceAsString(e)
, JSON.toJSONString(CollUtil.getFirst(sendTaskModel.getTaskInfo().listIterator())));
}
}

Loading…
Cancel
Save