diff --git a/utils/exceptions.py b/utils/exceptions.py index a6bbbab..18557ed 100644 --- a/utils/exceptions.py +++ b/utils/exceptions.py @@ -32,8 +32,9 @@ def report_to_log_center(exc, context): payload = { "project_id": "rtc_backend", - "environment": os.environ.get('ENVIRONMENT', 'production'), + "environment": os.environ.get('ENVIRONMENT', 'development'), "level": "ERROR", + "repo_url": "https://gitea.airlabs.art/zyc/rtc_backend.git", "error": { "type": type(exc).__name__, "message": str(exc), diff --git a/utils/middleware.py b/utils/middleware.py index 83d5943..0666014 100644 --- a/utils/middleware.py +++ b/utils/middleware.py @@ -47,8 +47,9 @@ def _report_exception(exc, request): payload = { "project_id": "rtc_backend", - "environment": os.environ.get('ENVIRONMENT', 'production'), + "environment": os.environ.get('ENVIRONMENT', 'development'), "level": "ERROR", + "repo_url": "https://gitea.airlabs.art/zyc/rtc_backend.git", "error": { "type": type(exc).__name__, "message": str(exc),