summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2015-05-11 19:01:37 +0200
committerChristophe Simonis <chs@odoo.com>2015-05-11 19:01:37 +0200
commitd8d3b38cbdc2f73d3a4e41df9781ceb2defd37f8 (patch)
treef1888a733f1e86bb436ac42a8545943bbafd6530
parent04b252b72c3bb5568f002e05d2fa889a1b4aae90 (diff)
[FIX] ir.logging: cursor should be in auto-commit
-rw-r--r--openerp/netsvc.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/openerp/netsvc.py b/openerp/netsvc.py
index 368e704b22f..f1299e35a17 100644
--- a/openerp/netsvc.py
+++ b/openerp/netsvc.py
@@ -82,6 +82,7 @@ class PostgreSQLHandler(logging.Handler):
if not dbname:
return
with tools.ignore(Exception), tools.mute_logger('openerp.sql_db'), sql_db.db_connect(dbname, allow_uri=True).cursor() as cr:
+ cr.autocommit(True)
msg = tools.ustr(record.msg)
if record.args:
msg = msg % record.args