patch: make log less verbose

Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
This commit is contained in:
ClSlaid 2023-10-28 17:00:29 +08:00
parent abe40c84b0
commit fbf5a84c4a
No known key found for this signature in database
GPG Key ID: E0A5F564C51C056E

View File

@ -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"));
}