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:
parent
ee7f3ffea3
commit
206e051817
@ -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),
|
||||
|
||||
@ -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),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user