Authored by Amos_sdy

添加日志

... ... @@ -40,7 +40,7 @@ import com.yoho.yhmessage.sms.service.model.SendNoticeResultBean;
*/
@Component
public class MsgCenterSmsByUidMqListener implements YhMessageConsumer {
private static final Logger log = LoggerFactory.getLogger("smsSendLog");
private static final Logger log = LoggerFactory.getLogger(MsgCenterSmsByUidMqListener.class);
@Resource
SMSSendHelper SMSSendHelper;
... ... @@ -92,6 +92,8 @@ public class MsgCenterSmsByUidMqListener implements YhMessageConsumer {
}
log.info("MsgCenterSmsByUidMqListener,handle msgcenter.inner.sms.byuid success, message is [{}].", message);
smsLogService.doLogSms(Arrays.toString(batchSmsByMobileBO.getMobile().toArray()), batchSmsByMobileBO.getContent(), batchSmsByMobileBO.getSendScene());
} else {
log.warn("no mobile info by uid {}", batchSmsByUidBO.getUid());
}
} catch (Exception e) {
log.error(e.getMessage(), e);
... ...