| | |
| | | using Microsoft.Extensions.Logging; |
| | | using WIDESEAWCS_Core.LogHelper; |
| | | using Serilog; |
| | | using WIDESEAWCS_QuartzJob; |
| | | |
| | | namespace WIDESEAWCS_Tasks |
| | |
| | | if (device == null) |
| | | { |
| | | // 设备未找到时记录调试日志,方便排查配置问题 |
| | | _logger.LogDebug("FindDevice:未找到 {DeviceName}", deviceName); |
| | | _logger.Debug("FindDevice:未找到 {DeviceName}", deviceName); |
| | | } |
| | | return device; // 可能为 null,由调用方负责 null 检查 |
| | | } |
| | |
| | | QuartzLogHelper.LogDebug(_logger, "Handle{Scenario}:子设备: {ChildDeviceCode},目标地址: {NextAddress}", $"Handle{scenario}:子设备: {childDeviceCode},目标地址: {nextAddress}", conveyorLine.DeviceCode, scenario, childDeviceCode, nextAddress); |
| | | } |
| | | } |
| | | } |
| | | } |