mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-20 18:32:07 +02:00
19.0 vanilla
This commit is contained in:
parent
d1963a3c3a
commit
2d3ee4855a
7430 changed files with 2687981 additions and 2965473 deletions
|
|
@ -53,7 +53,7 @@ class PostgreSQLHandler(logging.Handler):
|
|||
self._support_metadata = False
|
||||
if tools.config['log_db'] != '%d':
|
||||
with contextlib.suppress(Exception), tools.mute_logger('odoo.sql_db'), sql_db.db_connect(tools.config['log_db'], allow_uri=True).cursor() as cr:
|
||||
cr.execute("""SELECT 1 FROM information_schema.columns WHERE table_name='ir_logging' and column_name='metadata'""")
|
||||
cr.execute("""SELECT 1 FROM information_schema.columns WHERE table_name='ir_logging' and column_name='metadata' AND table_schema = current_schema""")
|
||||
self._support_metadata = bool(cr.fetchone())
|
||||
|
||||
def emit(self, record):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue