chore(i18n): 国际化日志消息文本
- 将AppMeasureHandler中的钢卷焊缝跟踪信号日志消息翻译为英文 - 将MatmapUtil中的钢卷焊缝跟踪日志消息翻译为英文 - 移除MessageReceiveSchedule类中的@AllArgsConstructor注解 - 更新SegmentTrackerService中的焊缝位置匹配逻辑日志消息为英文 - 将StripPositionService中的设备位置日志消息翻译为英文
This commit is contained in:
@@ -9,7 +9,6 @@ import com.fizz.business.service.ProStoppageService;
|
||||
import com.fizz.business.domain.ProStoppage;
|
||||
import com.kangaroohy.milo.model.ReadWriteEntity;
|
||||
import com.kangaroohy.milo.service.MiloService;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.beanutils.BeanUtils;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||
@@ -30,7 +29,6 @@ import static com.fizz.business.service.manager.OpcMessageIdsManager.*;
|
||||
|
||||
@Slf4j
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
@ConditionalOnProperty(prefix = "kangaroohy.milo", name = "enabled", havingValue = "true")
|
||||
public class MessageReceiveSchedule extends BaseSchedule {
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ public class AppMeasureHandler implements OpcMessageHandler<AppMeasureMessage> {
|
||||
int count = LOG_COUNTER.incrementAndGet();
|
||||
if (count % 10 == 0) {
|
||||
logDataService.logInfo("WELDER",
|
||||
"接收到钢卷焊缝跟踪信号:当前焊缝长度 lengthAtWelder:{} 当前钢卷信息 coilId:{}",
|
||||
"Received the coil weld tracking signal: Current weld length lengthAtWelder:{} Current coil information coilId:{}",
|
||||
lengthAtWelder, coilId);
|
||||
|
||||
}
|
||||
|
||||
@@ -372,7 +372,7 @@ public class SegmentTrackerService {
|
||||
|
||||
if (LogRateLimiter.shouldLog("TRACK:" + coilId, 5000)) {
|
||||
log.info("焊缝位置匹配逻辑,当前焊缝长度{},", headPos);
|
||||
logDataService.logInfo("MATMAP-TRACK", "CoilId=" + coilId + " ...");
|
||||
logDataService.logInfo("MATMAP-TRACK", "CoilId=" + coilId + "Weld position matching logic, current weld length ="+headPos);
|
||||
}
|
||||
|
||||
Set<DeviceEnum> prevReached = coilReachedDevices.computeIfAbsent(coilId,
|
||||
|
||||
@@ -60,7 +60,7 @@ public class StripPositionService {
|
||||
// 可选:持久化关键信息(只针对关键设备或每隔一段时间)
|
||||
if (device == DeviceEnum.WELDER || device == DeviceEnum.COAT || device == DeviceEnum.TR) {
|
||||
logDataService.logInfo("POSITION",
|
||||
String.format("设备:%s | 区域:%s | Base:%.3f | Cel:%.3f | Cxl:%.3f | Result:%.3f",
|
||||
String.format("Equipment:%s | area:%s | Base:%.3f | Cel:%.3f | Cxl:%.3f | Result:%.3f",
|
||||
device.getDesc(), device.getSectionType(), base, cel, cxl, result));
|
||||
}
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@ public class MatmapUtil {
|
||||
matmap.setPlanId(planId);
|
||||
log.info("钢卷焊缝跟踪:matId{},位置id:{}",matId,index);
|
||||
|
||||
logDataService.logInfo("MATMAP-SAVE","钢卷焊缝跟踪:matId"+matId+",位置id:"+index,"planId="+planId);
|
||||
logDataService.logInfo("MATMAP-SAVE","Coil weld tracking: matId"+matId+", Location ID:"+index,"planId="+planId);
|
||||
|
||||
redisCacheManager.setMatmap(index, matmap);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user