handlers::event: improve tracing

This commit is contained in:
seth 2024-03-18 08:45:25 -04:00
parent 9d0c022c68
commit af9938a3c6
No known key found for this signature in database
GPG key ID: D31BD0D494BBEE86
9 changed files with 34 additions and 1 deletions

View file

@ -1,6 +1,7 @@
use crate::api::REQWEST_CLIENT;
use eyre::{eyre, OptionExt, Result};
use log::trace;
use once_cell::sync::Lazy;
use regex::Regex;
use reqwest::StatusCode;
@ -27,6 +28,7 @@ struct PasteResult {
}
pub async fn find(content: &str) -> Result<Option<String>> {
trace!("Checking if {content} is a paste.gg log");
let Some(captures) = REGEX.captures(content) else {
return Ok(None);
};