Skip to main content

redact_chart_ref

Function redact_chart_ref 

Source
pub fn redact_chart_ref(chart: &str) -> String
Expand description

Ported from RedactChartRef. Returns chart safe for logging. The whole userinfo goes, not just the password, because tokens are commonly passed as a bare username. Non-URL references are returned unchanged.