From c5ce454319a7d54d3967c6ea7695543e943a37b2 Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Fri, 16 Aug 2024 07:12:33 -0400 Subject: tracing: use fields rather than interpolation --- src/commands/meme/delete.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/commands/meme/delete.rs') diff --git a/src/commands/meme/delete.rs b/src/commands/meme/delete.rs index 560da28..8adaa6c 100644 --- a/src/commands/meme/delete.rs +++ b/src/commands/meme/delete.rs @@ -26,7 +26,7 @@ pub async fn delmeme(ctx: PoiseContext<'_>, title: String) -> anyhow::Result<()> }, Err(e) => { if let Some(NotFound) = e.downcast_ref::() { - tracing::info!("attempted to delete nonexistent meme: '{}'", title); + tracing::info!(title, "attempted to delete nonexistent meme"); util::react(ctx, ReactionType::Unicode("❓".to_owned())).await?; util::reply(ctx, "nice try").await?; -- cgit v1.3.1