diff options
Diffstat (limited to 'src/util')
| -rw-r--r-- | src/util/mod.rs | 6 | ||||
| -rw-r--r-- | src/util/windows.rs | 4 |
2 files changed, 5 insertions, 5 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?; diff --git a/src/util/windows.rs b/src/util/windows.rs index 8856aed..7003490 100644 --- a/src/util/windows.rs +++ b/src/util/windows.rs @@ -114,13 +114,13 @@ pub unsafe fn get_psql_service( }, other => { - tracing::warn!("unable to identify postgres service: {other} potential matches found"); + tracing::warn!(n_candidates = other, "unable to identify postgres service"); return Ok(None); }, } let svc = psql_services.remove(0); - tracing::debug!("identified postgres service: {}", svc.name); + tracing::debug!(name = %svc.name, "identified postgres service"); Ok(Some(svc)) } |
