From 3f69b516bb39cdf1980bfa03a527fafafa671700 Mon Sep 17 00:00:00 2001 From: LamGC Date: Sun, 12 Jan 2025 01:32:19 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=8D=95=E8=8E=B7=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E4=BB=A3=E7=90=86=E8=8A=82=E7=82=B9=E6=97=B6=E5=8F=91?= =?UTF-8?q?=E7=94=9F=E7=9A=84=E5=BC=82=E5=B8=B8,=20=E5=B9=B6=E8=B7=B3?= =?UTF-8?q?=E8=BF=87=E8=AF=A5=E8=8A=82=E7=82=B9.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Proxd-man/Monitor/OutboundMonitor.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Proxd-man/Monitor/OutboundMonitor.cs b/Proxd-man/Monitor/OutboundMonitor.cs index f1fc067..b9730f4 100644 --- a/Proxd-man/Monitor/OutboundMonitor.cs +++ b/Proxd-man/Monitor/OutboundMonitor.cs @@ -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();