aboutsummaryrefslogtreecommitdiff
path: root/src/util/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/mod.rs')
-rw-r--r--src/util/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/mod.rs b/src/util/mod.rs
index c5bed98..9355e48 100644
--- a/src/util/mod.rs
+++ b/src/util/mod.rs
@@ -161,7 +161,7 @@ pub async fn send_result(
tts: bool,
) -> anyhow::Result<MessageId> {
let text = text.as_ref();
- tracing::debug!("sending message {:?} to channel {:?} (tts: {})", text, channel, tts);
+ tracing::debug!(text, %channel, tts, "sending message");
let result = channel.send_message(ctx, CreateMessage::default().content(text).tts(tts)).await?;
Ok(result.id)
@@ -203,12 +203,12 @@ pub async fn ytdl_url(uri: &str) -> anyhow::Result<String> {
uri,
];
- tracing::debug!("downloading info for uri: {uri}");
+ tracing::debug!(uri, "downloading info");
let mut command = Command::new(&*crate::config::YTDL_COMMAND);
command.args(args).stdin(Stdio::null());
- tracing::debug!("running command: {command:?}");
+ tracing::debug!(?command, "running command");
let out = command.output().await?;