[FIX] don't log dsn with unmasked passwords

Closes #1433