fix(log-center): add repo_url and change default env to development

- Add hardcoded repo_url for repair agent to locate git repository
- Change default environment from 'production' to 'development'

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
repair-agent 2026-02-24 13:00:18 +08:00
parent ee7f3ffea3
commit 206e051817
2 changed files with 4 additions and 2 deletions

View File

@ -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),

View File

@ -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),