Dont log regex parse times

The regex parsing is extremely fast (about 2-3 microseconds) and logging
this info would leave a detailed timing summary of message events in the
logs which is undesirable.
This commit is contained in:
froge 2023-10-17 02:59:42 +10:00
parent 9f334e1836
commit 6ac533233f
Signed by: froge
GPG key ID: A825E09930271BFA

View file

@ -120,8 +120,6 @@ pub async fn embed_handler(event: OriginalSyncRoomMessageEvent, room: Room, clie
}; };
let urls = get_urls_from_message(&text_content.body); let urls = get_urls_from_message(&text_content.body);
warn!("Ran fn get_urls_from_message after: '{:#?}'", fn_start.elapsed());
let reqwest_client = reqwest::Client::builder().user_agent("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36").build().unwrap(); let reqwest_client = reqwest::Client::builder().user_agent("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36").build().unwrap();
for url in urls { for url in urls {