[FIX] sql_db: don't log dsn with unmasked passwords
authorFlorian Kisser <florian.kisser@seekda.com>
Thu, 7 Aug 2014 10:33:03 +0000 (12:33 +0200)
committerMartin Trigaux <mat@odoo.com>
Tue, 28 Oct 2014 13:49:57 +0000 (14:49 +0100)
commitc6741fb537a5e4bf4280c20f59e9cd1b9d7e7d30
treecb0289bd9a338f475044f7553b9e9aba12ee4dad
parentb95b134285e4969baec8ae717ca5d13645f6c969
[FIX] sql_db: don't log dsn with unmasked passwords

The dsn may contain the connection password of the database when not accessed from a psycopg connection object.
Replace the unfiltered logs to use cxn.dsn avoiding password leakage in logs.
Fixes #1433
openerp/sql_db.py