Commit 66e4a49e by wutong

增加日志打印

parent ea301dce
...@@ -20,4 +20,4 @@ RUN cd /usr/app/data-parent && mvn -T 1C install -pl ../data-base/base-sync-ama ...@@ -20,4 +20,4 @@ RUN cd /usr/app/data-parent && mvn -T 1C install -pl ../data-base/base-sync-ama
#指定容器启动程序及参数 <ENTRYPOINT> "<CMD>" #指定容器启动程序及参数 <ENTRYPOINT> "<CMD>"
EXPOSE 8080 EXPOSE 8080
ENTRYPOINT ["java","-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap","-jar","/usr/app/data-base/base-sync-amazon-ad/target/base-sync-amazon-ad-1.0-SNAPSHOT.jar"] ENTRYPOINT ["java","-Xms600m","-Xmx600m","-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap","-jar","/usr/app/data-base/base-sync-amazon-ad/target/base-sync-amazon-ad-1.0-SNAPSHOT.jar"]
\ No newline at end of file \ No newline at end of file
...@@ -72,8 +72,10 @@ public class AmazonAdDownloadReportJob implements SimpleJob { ...@@ -72,8 +72,10 @@ public class AmazonAdDownloadReportJob implements SimpleJob {
response = client.newCall(request).execute(); response = client.newCall(request).execute();
if (response.isSuccessful()) { if (response.isSuccessful()) {
gzin = new GZIPInputStream(response.body().byteStream()); gzin = new GZIPInputStream(response.body().byteStream());
log.warn("开始解析账号Id为" + jobAmazonAdLog.getAccountId() +"的Report----" + jobAmazonAdLog.getReportId() + ", 文件大小为" +response.body().contentLength());
List<AmazonAdProduct> amazonAdProductList = JSON.parseObject(gzin, new TypeReference<List<AmazonAdProduct>>() { List<AmazonAdProduct> amazonAdProductList = JSON.parseObject(gzin, new TypeReference<List<AmazonAdProduct>>() {
}.getType()); }.getType());
log.warn("账号Id"+ jobAmazonAdLog.getAccountId() +"的Report解析完成");
gzin.close(); gzin.close();
response.close(); response.close();
JobAmazonAdLogMapper jobAmazonAdLogMapper = SessionUtil.getSession().getMapper(JobAmazonAdLogMapper.class); JobAmazonAdLogMapper jobAmazonAdLogMapper = SessionUtil.getSession().getMapper(JobAmazonAdLogMapper.class);
......
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