diff options
| author | Nathan Perry <np@nathanperry.dev> | 2024-08-16 07:12:33 -0400 |
|---|---|---|
| committer | Nathan Perry <np@nathanperry.dev> | 2024-08-16 07:12:33 -0400 |
| commit | c5ce454319a7d54d3967c6ea7695543e943a37b2 (patch) | |
| tree | 193a6907bc3a476f18774558ca52a3cb7618f912 /src/commands/playback.rs | |
| parent | 5a2dc4070c1d14f22a7671c6f82ca2f4578369bd (diff) | |
tracing: use fields rather than interpolation
Diffstat (limited to 'src/commands/playback.rs')
| -rw-r--r-- | src/commands/playback.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<Songbird>, 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(()); |
