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/playback.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/commands/playback.rs') diff --git a/src/commands/playback.rs b/src/commands/playback.rs index ad24eb3..50ac8bb 100644 --- a/src/commands/playback.rs +++ b/src/commands/playback.rs @@ -33,9 +33,9 @@ pub async fn songbird(ctx: PoiseContext<'_>) -> anyhow::Result<(Arc, A pub async fn _play(ctx: PoiseContext<'_>, url: &url::Url) -> anyhow::Result<()> { use url::Host; - tracing::debug!("playing '{}'", url); + tracing::debug!(%url, "playing"); if !url.scheme().starts_with("http") { - tracing::warn!("got bad url argument to play: {}", url); + tracing::warn!(%url, "got bad url argument"); util::reply(ctx, "bAD LiNk").await?; return Ok(()); -- cgit v1.3.1