refactor: 捕获测试代理节点时发生的异常, 并跳过该节点.
This commit is contained in:
@@ -131,6 +131,11 @@ public class OutboundMonitor
|
||||
outboundTestProcess.Kill();
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
_logger.LogError(e, "测试代理 {OutboundSettingName} ({OutboundSettingTag}) 时发生错误, 跳过代理, 地址: {OutboundSettingAddress}",
|
||||
outboundSetting.Name, outboundSetting.GetTag(), outboundSetting.Address);
|
||||
}
|
||||
finally
|
||||
{
|
||||
semaphore.Release();
|
||||
|
||||
Reference in New Issue
Block a user