diff options
| author | Jairo Llopis <yajo.sk8@gmail.com> | 2019-10-07 11:44:00 +0000 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2019-10-08 14:12:23 +0000 |
| commit | 8ad360ccd3673a77c81e39b08236928fc2fe6c9d (patch) | |
| tree | a55ae87a8f81ba61d3ad61841ee9d2936036ac9f /addons | |
| parent | bb5ceeaa1bbac3c0de48b0a4114368ce01833cf8 (diff) | |
[FIX] Log failed queries decoded
Starting with Python 3, queries sent by psyocopg2 are stored as `bytes()` objects.
Logging those raw makes them appear unformatted, harder to read than in v10 or lower Odoo versions (i.e. `\n` instead of a raw newline character).
Decoding the query into unicode makes it easier to read in the logs.
closes odoo/odoo#38074
X-original-commit: 329accde2ed6d4dbfdde6d3d99d71e21d15396b7
Signed-off-by: Christophe Simonis <chs@odoo.com>
Diffstat (limited to 'addons')
0 files changed, 0 insertions, 0 deletions
