Commit c31ae3fd authored by duanruiming's avatar duanruiming

[add] 诱导屏添加上屏日志

parent 37ececdd
......@@ -94,7 +94,7 @@ public class InduceSendServiceImpl implements InduceSendService {
param.setResolutionWidth(deviceInduces.getResolutionWidth().intValue());
param.setResolutionHeight(deviceInduces.getResolutionHeight().intValue());
}
log.info("发送诱导屏诱导屏编号信息:{}", deviceInduces);
log.info("发送屏诱导屏编号信息:{}", deviceInduces);
// 获取图片字节数组
BufferedImage image = null;
try {
......@@ -119,7 +119,7 @@ public class InduceSendServiceImpl implements InduceSendService {
createImageWithText(induceTemplate, image, param.getContents(), true, topLeftX, topLeftY, bottomRightX, bottomRightY);
}
} catch (Exception ex) {
log.error("诱导屏通过模版生成图片异常:{}", ex.getMessage());
log.error("发送上屏通过模版生成图片异常:{}", ex.getMessage());
}
// 测试阶段保存图片到本地
// ImageIO.write(image, "bmp", new File("D:\\tmp\\" + induceTemplate.getFileName()));
......@@ -135,7 +135,7 @@ public class InduceSendServiceImpl implements InduceSendService {
if (Objects.nonNull(greenwaveinduces)) {
greenwaveinduces.setSourceId(PATH + dirName + "/" + fileName);
}
log.info("上传文件至ftp-filePath:{}", param.getFtpPath());
log.info("发送上屏上传文件至ftp-filePath:{}", param.getFtpPath());
induceTemplateService.updateById(induceTemplate);
}
......@@ -171,7 +171,7 @@ public class InduceSendServiceImpl implements InduceSendService {
try {
rabbitTemplate.convertAndSend("", queueName, message);
} catch (Exception e) {
log.error("rabbit发送诱导屏信息失败- queueName:{},message:{}", queueName, message);
log.error("发送上屏rabbit发送诱导屏信息失败- queueName:{},message:{}", queueName, message);
}
}
log.info("mqtt发送信息-topic:{},queueName:{},message:{}", queueName, message);
......@@ -225,6 +225,7 @@ public class InduceSendServiceImpl implements InduceSendService {
log.info("ftp服务器上传文件{}失败", fileName);
return null;
} catch (Exception e) {
log.error("ftp服务连接异常:{}", e);
log.error(e.getMessage());
return null;
} finally {
......
......@@ -248,6 +248,7 @@ public class InducesMonitorTask {
}
induceSendService.send(messageParam);
Thread.sleep(10000);
log.info("发送上屏信息成功,上屏内容:{}", messageParam);
}
}
greenwaveInducesHist.setStatus(1);
......@@ -333,7 +334,7 @@ public class InducesMonitorTask {
messageParam.setFlg(2);
messageParam.setType("TFMH");
induceSendService.send(messageParam);
log.info("当前绿波:{}, 诱导屏编号:{}, 下屏成功", greenId, equipCode);
log.info("当前绿波:{}, 诱导屏编号:{},当前绿波结束时间:{}, 下屏成功", greenId, equipCode, endTime);
Thread.sleep(500);
}
}
......
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