pub fn redact_chart_ref(chart: &str) -> StringExpand 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.