Skip to main content

redact_database_url

Function redact_database_url 

Source
fn redact_database_url(url: &str) -> String
Expand description

Redact credentials from a database URL for safe logging. Turns postgres://user:pass@host:5432/db into postgres://***@host:5432/db.