refactor: 捕获测试代理节点时发生的异常, 并跳过该节点.

This commit is contained in:
2025-01-12 01:32:19 +08:00
parent c0a3517560
commit 3f69b516bb
+5
View File
@@ -131,6 +131,11 @@ public class OutboundMonitor
outboundTestProcess.Kill(); outboundTestProcess.Kill();
} }
} }
catch (Exception e)
{
_logger.LogError(e, "测试代理 {OutboundSettingName} ({OutboundSettingTag}) 时发生错误, 跳过代理, 地址: {OutboundSettingAddress}",
outboundSetting.Name, outboundSetting.GetTag(), outboundSetting.Address);
}
finally finally
{ {
semaphore.Release(); semaphore.Release();