aboutsummaryrefslogtreecommitdiffstats
path: root/src/commands/utilities.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/utilities.rs')
-rw-r--r--src/commands/utilities.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/commands/utilities.rs b/src/commands/utilities.rs
index b77f44d..33d732f 100644
--- a/src/commands/utilities.rs
+++ b/src/commands/utilities.rs
@@ -4,7 +4,7 @@ use tracing::warn;
4use super::autocomplete::any_file; 4use super::autocomplete::any_file;
5use crate::music::sanitize_yt_url; 5use crate::music::sanitize_yt_url;
6use crate::Data; 6use crate::Data;
7use crate::copyparty::{html_decode, percent_decode}; 7use crate::copyparty::{html_decode, percent_decode, redact_url};
8use crate::error::{Error, Result}; 8use crate::error::{Error, Result};
9use crate::lang; 9use crate::lang;
10 10
@@ -502,7 +502,11 @@ async fn run_download(
502 let stderr = String::from_utf8_lossy(&output.stderr); 502 let stderr = String::from_utf8_lossy(&output.stderr);
503 // Keep the full yt-dlp trace in the logs; the user only sees the 503 // Keep the full yt-dlp trace in the logs; the user only sees the
504 // short `fmt_download_failed` (translated) message. 504 // short `fmt_download_failed` (translated) message.
505 warn!(url = %url, "yt-dlp failed:\n{}", stderr.trim_end()); 505 warn!(
506 url = %redact_url(url),
507 "yt-dlp failed:\n{}",
508 stderr.trim_end()
509 );
506 let _ = tokio::fs::remove_dir_all(&dl_dir).await; 510 let _ = tokio::fs::remove_dir_all(&dl_dir).await;
507 ctx.say(lang::fmt_download_failed(&stderr)).await?; 511 ctx.say(lang::fmt_download_failed(&stderr)).await?;
508 return Ok(()); 512 return Ok(());