This commit is contained in:
2025-10-24 12:55:21 +02:00
parent f7a3e3f0f8
commit 88b9375a4e
7 changed files with 414 additions and 262 deletions
+6 -2
View File
@@ -133,8 +133,12 @@ impl AppConfig {
fn redact_database_url(raw: &str) -> String {
match Url::parse(raw) {
Ok(mut parsed) => {
let _ = parsed.set_password(Some("*****"));
parsed.to_string()
if parsed.password().is_some() {
let _ = parsed.set_password(Some("*****"));
parsed.to_string()
} else {
raw.to_string()
}
}
Err(_) => "***".to_string(),
}