Maintainers
+Maintainers
This module is maintained by the OCA.
@@ -521,6 +517,5 @@ diff --git a/requirements.txt b/requirements.txt index 2ffa3961279..8446c1e0da7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,4 +8,4 @@ openupgradelib paramiko<4.0.0 pygount pysftp -sentry_sdk>=2.0.0,<=2.22.0 +sentry_sdk>=2.35.0 diff --git a/sentry/__manifest__.py b/sentry/__manifest__.py index 7f950bc3f0e..3236d73018d 100644 --- a/sentry/__manifest__.py +++ b/sentry/__manifest__.py @@ -17,7 +17,7 @@ "installable": True, "external_dependencies": { "python": [ - "sentry_sdk>=2.0.0,<=2.22.0", + "sentry_sdk>=2.35.0", ] }, "depends": [ diff --git a/sentry/hooks.py b/sentry/hooks.py index 6a6af920967..36db6897ed2 100644 --- a/sentry/hooks.py +++ b/sentry/hooks.py @@ -128,6 +128,9 @@ def initialize_sentry(config): # Remove logging_level, since in sentry_sdk is include in 'integrations' del options["logging_level"] + if config.get("sentry_enable_logs", False): + options["enable_logs"] = True + client = sentry_sdk.init(**options) sentry_sdk.set_tag("include_context", config.get("sentry_include_context", True)) diff --git a/sentry/readme/CONFIGURE.md b/sentry/readme/CONFIGURE.md index 92ee130add5..87608bbeb86 100644 --- a/sentry/readme/CONFIGURE.md +++ b/sentry/readme/CONFIGURE.md @@ -19,6 +19,7 @@ options: sentry_enabled = true sentry_logging_level = warn sentry_exclude_loggers = werkzeug + sentry_enable_logs = true sentry_ignore_exceptions = odoo.exceptions.AccessDenied, odoo.exceptions.AccessError,odoo.exceptions.MissingError, odoo.exceptions.RedirectWarning,odoo.exceptions.UserError, diff --git a/sentry/static/description/index.html b/sentry/static/description/index.html index 42117a52a2d..4d07541252d 100644 --- a/sentry/static/description/index.html +++ b/sentry/static/description/index.html @@ -3,7 +3,7 @@
-This module allows painless Sentry integration with Odoo.
Table of contents
@@ -398,7 +393,7 @@The module can be installed just like any other Odoo module, by adding the module’s directory to Odoo addons_path. In order for the module to correctly wrap the Odoo WSGI application, it also needs to be loaded as @@ -412,7 +407,7 @@
The following additional configuration options can be added to your Odoo configuration file:
[TABLE]
@@ -423,7 +418,7 @@Below is an example of Odoo configuration file with Odoo Sentry options:
@@ -432,6 +427,7 @@Example Odoo configurationExample Odoo configuration
Once configured and installed, the module will report any logging event at and above the configured Sentry logging level, no additional actions are necessary.
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed @@ -476,9 +472,9 @@
Do not contact contributors directly about support or help with technical issues.