From fbf5a84c4aa62cd7ae3815c2bc0aa299da9ffb7f Mon Sep 17 00:00:00 2001 From: ClSlaid Date: Sat, 28 Oct 2023 17:00:29 +0800 Subject: [PATCH] patch: make log less verbose Signed-off-by: ClSlaid --- src/common.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common.rs b/src/common.rs index 32258b400..7435f4c6e 100644 --- a/src/common.rs +++ b/src/common.rs @@ -96,7 +96,7 @@ impl ClipboardContext { let file_urls = get_clipboard()?.load(clip, self.text_uri_list, prop, TIMEOUT); if file_urls.is_err() || file_urls.as_ref().unwrap().is_empty() { - log::debug!("clipboard get text, no file urls"); + log::trace!("clipboard get text, no file urls"); return String::from_utf8(text_content).map_err(|e| e.to_string()); } @@ -105,7 +105,7 @@ impl ClipboardContext { let text_content = String::from_utf8(text_content).map_err(|e| e.to_string())?; if text_content.trim() == file_urls.trim() { - log::debug!("clipboard got text but polluted"); + log::trace!("clipboard got text but polluted"); return Err(String::from("polluted text")); }