projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7c2125
)
[FIX] logging PostgreSQLHandler: mute sql_db logger to avoid logging loop if db conne...
author
Christophe Simonis
<chs@odoo.com>
Tue, 10 Jun 2014 14:11:11 +0000
(16:11 +0200)
committer
Christophe Simonis
<chs@odoo.com>
Tue, 10 Jun 2014 14:11:11 +0000
(16:11 +0200)
openerp/netsvc.py
patch
|
blob
|
history
diff --git
a/openerp/netsvc.py
b/openerp/netsvc.py
index
c84228e
..
391de55
100644
(file)
--- a/
openerp/netsvc.py
+++ b/
openerp/netsvc.py
@@
-78,7
+78,7
@@
class PostgreSQLHandler(logging.Handler):
dbname = tools.config['log_db'] or ct_db
if not dbname:
return
- with tools.ignore(Exception), sql_db.db_connect(dbname).cursor() as cr:
+ with tools.ignore(Exception), tools.mute_logger('openerp.sql_db'), sql_db.db_connect(dbname).cursor() as cr:
msg = tools.ustr(record.msg)
if record.args:
msg = msg % record.args