增加es异常日志

This commit is contained in:
paulGao
2021-11-03 15:25:28 +08:00
parent 676c432ded
commit 58ce721674
2 changed files with 6 additions and 1 deletions

View File

@@ -542,8 +542,10 @@ public class EsGoodsIndexServiceImpl extends BaseElasticsearchService implements
goodsWords.setSort(0);
goodsWordsService.save(goodsWords);
}
} catch (MyBatisSystemException e) {
} catch (MyBatisSystemException me) {
log.error(words + "关键字已存在!");
} catch (Exception e) {
log.error("关键字入库异常!", e);
}
}