错误提示修改

feature-flyModify
陈伟 2025-09-06 09:46:27 +08:00
parent 1943129665
commit 192608d5f9
1 changed files with 2 additions and 2 deletions

View File

@ -27,12 +27,12 @@ public class DelayedExecutionService : BackgroundService
} }
catch (OperationCanceledException) catch (OperationCanceledException)
{ {
_logger.LogInformation("定时任务被取消"); _logger.LogInformation("无人机状态上报任务被取消");
break; break;
} }
catch (Exception ex) catch (Exception ex)
{ {
_logger.LogError(ex, "定时任务执行时发生错误"); _logger.LogError(ex, "无人机状态上报任务发生错误");
// 即使出错也继续下一次执行 // 即使出错也继续下一次执行
await Task.Delay(TimeSpan.FromSeconds(5), stoppingToken); await Task.Delay(TimeSpan.FromSeconds(5), stoppingToken);
} }