Skip to content

Commit

Permalink
[FIX] sentry: add compatibility with sentry-sdk from debian bullseye …
Browse files Browse the repository at this point in the history
…repository

Debian Bullseye is used as base docker image for odoo:16.0
  • Loading branch information
em230418 committed Jan 30, 2025
1 parent d7b323a commit b0ac8ca
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions sentry/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def get_sentry_logging(level=DEFAULT_LOG_LEVEL):


def get_sentry_options():
return [
res = [
SentryOption("dsn", "", str.strip),
SentryOption("transport", DEFAULT_OPTIONS["transport"], select_transport),
SentryOption("logging_level", DEFAULT_LOG_LEVEL, get_sentry_logging),
Expand Down Expand Up @@ -116,9 +116,15 @@ def get_sentry_options():
DEFAULT_OPTIONS["traces_sample_rate"],
to_float_if_defined,
),
SentryOption(
"auto_enabling_integrations",
DEFAULT_OPTIONS["auto_enabling_integrations"],
None,
),
]

if "auto_enabling_integrations" in DEFAULT_OPTIONS:
res.append(
SentryOption(
"auto_enabling_integrations",
DEFAULT_OPTIONS["auto_enabling_integrations"],
None,
)
)

return res

0 comments on commit b0ac8ca

Please sign in to comment.