取消不必要的错误日志
This commit is contained in:
@@ -531,6 +531,13 @@ public class CollectDeviceWorker : BackgroundService
|
||||
|
||||
await Task.Delay(300000, stoppingToken);
|
||||
}
|
||||
catch (TaskCanceledException)
|
||||
{
|
||||
|
||||
}
|
||||
catch (ObjectDisposedException)
|
||||
{
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.LogError(ex, ToString());
|
||||
|
||||
@@ -392,6 +392,13 @@ public class UploadDeviceWorker : BackgroundService
|
||||
}
|
||||
await Task.Delay(300000, stoppingToken);
|
||||
}
|
||||
catch (TaskCanceledException)
|
||||
{
|
||||
|
||||
}
|
||||
catch (ObjectDisposedException)
|
||||
{
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.LogError(ex, ToString());
|
||||
|
||||
Reference in New Issue
Block a user