From 6ac533233fb1d0aa8861646b31750b8d59b4c6c4 Mon Sep 17 00:00:00 2001 From: froge Date: Tue, 17 Oct 2023 02:59:42 +1000 Subject: [PATCH] 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. --- src/embeds.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/embeds.rs b/src/embeds.rs index 7452ae0..a41cf7d 100644 --- a/src/embeds.rs +++ b/src/embeds.rs @@ -120,8 +120,6 @@ pub async fn embed_handler(event: OriginalSyncRoomMessageEvent, room: Room, clie }; 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(); for url in urls {