diff --git a/sentry/README.rst b/sentry/README.rst
index 2297e12ebcd..f83d92968a4 100644
--- a/sentry/README.rst
+++ b/sentry/README.rst
@@ -17,13 +17,13 @@ Sentry
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github
- :target: https://github.com/OCA/server-tools/tree/17.0/sentry
+ :target: https://github.com/OCA/server-tools/tree/18.0/sentry
:alt: OCA/server-tools
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/server-tools-17-0/server-tools-17-0-sentry
+ :target: https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-sentry
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
- :target: https://runboat.odoo-community.org/builds?repo=OCA/server-tools&target_branch=17.0
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/server-tools&target_branch=18.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -106,17 +106,17 @@ are necessary.
Known issues / Roadmap
======================
-- **No database separation** -- This module functions by intercepting
- all Odoo logging records in a running Odoo process. This means that
- once installed in one database, it will intercept and report errors
- for all Odoo databases, which are used on that Odoo server.
-- **Frontend integration** -- In the future, it would be nice to add
- Odoo client-side error reporting to this module as well, by
- integrating `raven-js `__.
- Additionally, `Sentry user feedback
- form `__ could be
- integrated into the Odoo client error dialog window to allow users
- shortly describe what they were doing when things went wrong.
+- **No database separation** -- This module functions by intercepting
+ all Odoo logging records in a running Odoo process. This means that
+ once installed in one database, it will intercept and report errors
+ for all Odoo databases, which are used on that Odoo server.
+- **Frontend integration** -- In the future, it would be nice to add
+ Odoo client-side error reporting to this module as well, by
+ integrating `raven-js `__.
+ Additionally, `Sentry user feedback
+ form `__ could be
+ integrated into the Odoo client error dialog window to allow users
+ shortly describe what they were doing when things went wrong.
Bug Tracker
===========
@@ -124,7 +124,7 @@ Bug Tracker
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
-`feedback `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -142,18 +142,19 @@ Authors
Contributors
------------
-- Mohammed Barsi
-- Andrius Preimantas
-- Naglis Jonaitis
-- Atte Isopuro
-- Florian Mounier
-- Jon Ashton
-- Mark Schuit
+- Mohammed Barsi
+- Andrius Preimantas
+- Naglis Jonaitis
+- Atte Isopuro
+- Florian Mounier
+- Jon Ashton
+- Mark Schuit
+- Atchuthan
Other credits
-------------
-- Vauxoo
+- Vauxoo
Maintainers
-----------
@@ -188,6 +189,6 @@ Current `maintainers `__:
|maintainer-barsi| |maintainer-naglis| |maintainer-versada| |maintainer-moylop260| |maintainer-fernandahf|
-This module is part of the `OCA/server-tools `_ project on GitHub.
+This module is part of the `OCA/server-tools `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/sentry/__manifest__.py b/sentry/__manifest__.py
index 40e9c97b077..b898e3f33d4 100644
--- a/sentry/__manifest__.py
+++ b/sentry/__manifest__.py
@@ -3,7 +3,7 @@
{
"name": "Sentry",
"summary": "Report Odoo errors to Sentry",
- "version": "17.0.1.0.0",
+ "version": "18.0.1.0.0",
"category": "Extra Tools",
"website": "https://github.com/OCA/server-tools",
"author": "Mohammed Barsi,"
diff --git a/sentry/const.py b/sentry/const.py
index 9f7eab3af95..a3195d54f5f 100644
--- a/sentry/const.py
+++ b/sentry/const.py
@@ -33,7 +33,7 @@ def to_float_if_defined(value):
# Mapping of Odoo logging level -> Python stdlib logging library log level.
LOG_LEVEL_MAP = {
- getattr(odoo.loglevels, "LOG_%s" % x): getattr(logging, x)
+ getattr(odoo.loglevels, f"LOG_{x}"): getattr(logging, x)
for x in ("CRITICAL", "ERROR", "WARNING", "INFO", "DEBUG", "NOTSET")
}
DEFAULT_LOG_LEVEL = "warn"
diff --git a/sentry/hooks.py b/sentry/hooks.py
index 42c9e38f405..5a74848afa1 100644
--- a/sentry/hooks.py
+++ b/sentry/hooks.py
@@ -100,7 +100,7 @@ def initialize_sentry(config):
)
options = {}
for option in const.get_sentry_options():
- value = config.get("sentry_%s" % option.key, option.default)
+ value = config.get(f"sentry_{option.key, option.default}")
if isinstance(option.converter, abc.Callable):
value = option.converter(value)
options[option.key] = value
diff --git a/sentry/readme/CONTRIBUTORS.md b/sentry/readme/CONTRIBUTORS.md
index 44cbac49f02..b9cb90dd7e4 100644
--- a/sentry/readme/CONTRIBUTORS.md
+++ b/sentry/readme/CONTRIBUTORS.md
@@ -5,3 +5,4 @@
- Florian Mounier \<\>
- Jon Ashton \<\>
- Mark Schuit \<\>
+- Atchuthan \<\>
diff --git a/sentry/static/description/index.html b/sentry/static/description/index.html
index 6046c9bfa4d..c00d24a44f0 100644
--- a/sentry/static/description/index.html
+++ b/sentry/static/description/index.html
@@ -8,10 +8,11 @@
/*
:Author: David Goodger (goodger@python.org)
-:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
+:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
:Copyright: This stylesheet has been placed in the public domain.
Default cascading style sheet for the HTML output of Docutils.
+Despite the name, some widely supported CSS2 features are used.
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
@@ -274,7 +275,7 @@
margin-left: 2em ;
margin-right: 2em }
-pre.code .ln { color: grey; } /* line numbers */
+pre.code .ln { color: gray; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@@ -300,7 +301,7 @@
span.pre {
white-space: pre }
-span.problematic {
+span.problematic, pre.problematic {
color: red }
span.section-subtitle {
@@ -368,7 +369,7 @@ Sentry
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:fb1e0787f353def76b80f3aae5948d0b7a9b01d35f2f738a5b96fa28588bab0e
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-
+
This module allows painless Sentry integration
with Odoo.
Table of contents
@@ -466,7 +467,7 @@
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
-feedback.
+feedback.
Do not contact contributors directly about support or help with technical issues.
@@ -501,13 +503,15 @@
This module is maintained by the OCA.
-
+
+
+
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
Current maintainers:
-
This module is part of the OCA/server-tools project on GitHub.
+
This module is part of the OCA/server-tools project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/sentry/tests/test_client.py b/sentry/tests/test_client.py
index c954109256a..37710122a41 100644
--- a/sentry/tests/test_client.py
+++ b/sentry/tests/test_client.py
@@ -116,13 +116,13 @@ def log(self, level, msg, exc_info=None):
def assertEventCaptured(self, client, event_level, event_msg):
self.assertTrue(
client.transport.has_event(event_level, event_msg),
- msg='Event: "%s" was not captured' % event_msg,
+ msg=f"Event: {event_msg} was not captured",
)
def assertEventNotCaptured(self, client, event_level, event_msg):
self.assertFalse(
client.transport.has_event(event_level, event_msg),
- msg='Event: "%s" was captured' % event_msg,
+ msg=f"Event: {event_msg} was captured",
)
def test_initialize_raven_sets_dsn(self):
@@ -203,7 +203,7 @@ def test_exclude_logger(self):
)
client = initialize_sentry(config)._client
client.transport = InMemoryTransport({"dsn": self.dsn})
- level, msg = logging.ERROR, "Test exclude logger %s" % __name__
+ level, msg = logging.ERROR, f"Test exclude logger {__name__}"
self.log(level, msg)
level = "error"
# Revert ignored logger so it doesn't affect other tests