Commit fc995aee authored by liaowenwu's avatar liaowenwu

添加日志

parent e42592d1
......@@ -102,7 +102,7 @@ public class MysqlDataTransferSinkBatch extends RichSinkFunction<String> {
} catch (Exception ex) {
logger.error("事务回滚异常", ex);
}
logger.error("------错误时间:{}-----,sql:{}--------异常:{}", new Date(), String.join(";", batch), e);
logger.error("------错误时间:{}-------------异常:", new Date(), e);
SqlErrorLog errorLog = new SqlErrorLog(new Date(), String.join(";", batch), e.getMessage());
writeErrLogDb(errorLog);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment