mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00

- move sentry configuration and add exception-based filtering - clarify and reclassify (e.g. from warning to info) a few messages - convert assertions in rebase to MergeError so they can be correctly logged & reported, and ignored by sentry, also clarify them (especially the consistency one) Related to #544
11 lines
351 B
Python
11 lines
351 B
Python
from . import models, controllers
|
|
from .sentry import enable_sentry
|
|
|
|
def _check_citext(cr):
|
|
cr.execute("select 1 from pg_extension where extname = 'citext'")
|
|
if not cr.rowcount:
|
|
try:
|
|
cr.execute('create extension citext')
|
|
except Exception:
|
|
raise AssertionError("runbot_merge needs the citext extension")
|