From b9162f9576f3953fa03e6ccb5d0d2b7fd683a604 Mon Sep 17 00:00:00 2001 From: GyDi Date: Wed, 13 Apr 2022 00:49:30 +0800 Subject: [PATCH] fix: adjust log --- src-tauri/src/core/verge.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src-tauri/src/core/verge.rs b/src-tauri/src/core/verge.rs index 7dcd0d5..c2d3d52 100644 --- a/src-tauri/src/core/verge.rs +++ b/src-tauri/src/core/verge.rs @@ -149,7 +149,7 @@ impl Verge { if let Some(sysproxy) = self.old_sysproxy.take() { match sysproxy.set_sys() { Ok(_) => self.cur_sysproxy = None, - Err(_) => log::error!("failed to reset proxy for"), + Err(_) => log::error!("failed to reset proxy"), } } } @@ -242,7 +242,6 @@ impl Verge { if sysproxy.set_sys().is_err() { self.cur_sysproxy = Some(sysproxy); - log::error!("failed to set system proxy"); bail!("failed to set system proxy"); } self.cur_sysproxy = Some(sysproxy); @@ -261,7 +260,6 @@ impl Verge { if sysproxy.set_sys().is_err() { self.cur_sysproxy = Some(sysproxy); - log::error!("failed to set system proxy"); bail!("failed to set system proxy"); } }