[FIX] ir.logging: cursor should be in auto-commit
This commit is contained in:
parent
04b252b72c
commit
d8d3b38cbd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue