From 1e11d3fb37254c7e36f05bc88d4c50741c8ea1ea Mon Sep 17 00:00:00 2001 From: Yhael S Date: Sat, 7 Oct 2023 05:55:00 -0500 Subject: [PATCH] refactor --- .env.example | 12 +++++++++++- odoo/odoo.conf | 22 +++++++++------------- 2 files changed, 20 insertions(+), 14 deletions(-) diff --git a/.env.example b/.env.example index f81a39b..798f40c 100644 --- a/.env.example +++ b/.env.example @@ -34,6 +34,16 @@ DBFILTER=.* LOG_LEVEL=info # Additional logs LOG_HANDLER_LEVEL=INFO +# Sentry +SENTRY_DSN= +SENTRY_ENABLED=true +SENTRY_LOGGING_LEVEL=warn +SENTRY_EXCLUDE_LOGGERS= +SENTRY_IGNORE_EXCEPTIONS= +SENTRY_INCLUDE_CONTEXT=true +SENTRY_ENVIRONMENT=production +SENTRY_RELEASE= +SENTRY_ODOO_DIR= # Nginx CORS_ALLOWED_DOMAIN="'http://external-domain.test'" @@ -65,7 +75,7 @@ REDIS_HOST=redis REDIS_PORT=6379 REDIS_PASSWORD= REDIS_URL= -REDIS_PREFIX=odoo +REDIS_PREFIX=odoocker REDIS_SENTINEL_MASTER_NAME= REDIS_SENTINEL_HOST= REDIS_SENTINEL_PORT=26379 diff --git a/odoo/odoo.conf b/odoo/odoo.conf index 68f169d..f202f75 100644 --- a/odoo/odoo.conf +++ b/odoo/odoo.conf @@ -266,19 +266,15 @@ limit_request = ${LIMIT_REQUEST} ;--------------; ; Sentry ; ;--------------; -sentry_dsn = https://84799fb74edc4053aa3368aec3c2cb89@o4504596558577664.ingest.sentry.io/4504596563230720 -sentry_enabled = true -sentry_logging_level = warn -# sentry_exclude_loggers = werkzeug -# sentry_ignore_exceptions = odoo.exceptions.AccessDenied, -# odoo.exceptions.AccessError,odoo.exceptions.MissingError, -# odoo.exceptions.RedirectWarning,odoo.exceptions.UserError, -# odoo.exceptions.ValidationError,odoo.exceptions.Warning, -# odoo.exceptions.except_orm -sentry_include_context = true -# sentry_environment = production -# sentry_release = 1 -# sentry_odoo_dir = +sentry_dsn = ${SENTRY_DSN} +sentry_enabled = ${SENTRY_ENABLED} +sentry_logging_level = ${SENTRY_LOGGING_LEVEL} +sentry_exclude_loggers = ${SENTRY_EXCLUDE_LOGGERS} +sentry_ignore_exceptions = ${SENTRY_IGNORE_EXCEPTIONS} +sentry_include_context = ${SENTRY_INCLUDE_CONTEXT} +sentry_environment = ${SENTRY_ENVIRONMENT} +sentry_release = ${SENTRY_RELEASE} +sentry_odoo_dir = ${SENTRY_ODOO_DIR} ;-------------; ; Redis ;