redact_url_password#

redact_url_password(url)[source]#

Remove password from the URL.

Designed to sanitize PSQL connection URLs in logs.

Parameters:

url (str) – URL as a string

Returns:

URL where password is replaced with ???

Return type:

str