refactor: remove CrashReporter and related logging components
- Removed CrashReporter interface and its implementation, SentryCrashReporter. - Deleted log buffering functionality and associated LogBuffer class. - Updated LoggerAppLogger to eliminate dependencies on removed components. - Simplified logging structure to focus on AppLogger and sensitive data scrubbing. - Adjusted AppEnv to remove Sentry-related configurations. - Refactored tests to align with the new logging architecture.
This commit is contained in:
Vendored
+1
-2
@@ -1,7 +1,6 @@
|
||||
{
|
||||
"_comment": "dev 环境。构建时必须带 --dart-define-from-file=env/dev.json,否则 AppEnv.fromDartDefine 会直接抛错。所有地址都是占位符,TODO(ops) 待运维确认真实域名。",
|
||||
"_comment": "dev 环境。未指定 flavor 的启动(包括 DevEco 默认 HAP 构建)使用此配置。所有地址都是占位符,TODO(ops) 待运维确认真实域名。",
|
||||
"API_BASE_URL": "https://api-dev.example.com",
|
||||
"ENABLE_LOG": true,
|
||||
"SENTRY_DSN": "",
|
||||
"H5_ALLOWED_HOSTS": "h5-dev.example.com"
|
||||
}
|
||||
|
||||
Vendored
+1
-2
@@ -1,7 +1,6 @@
|
||||
{
|
||||
"_comment": "prod 环境。ENABLE_LOG 必须为 false(13:生产不写控制台、不落日志文件)。TODO(ops) 待运维确认真实域名与 Sentry DSN。",
|
||||
"_comment": "prod 环境。ENABLE_LOG 必须为 false,生产不写控制台日志。TODO(ops) 待运维确认真实域名。",
|
||||
"API_BASE_URL": "https://api.example.com",
|
||||
"ENABLE_LOG": false,
|
||||
"SENTRY_DSN": "",
|
||||
"H5_ALLOWED_HOSTS": "h5.example.com"
|
||||
}
|
||||
|
||||
Vendored
-1
@@ -2,6 +2,5 @@
|
||||
"_comment": "uat 环境。TODO(ops) 待运维确认真实域名与 Sentry DSN。",
|
||||
"API_BASE_URL": "https://api-uat.example.com",
|
||||
"ENABLE_LOG": true,
|
||||
"SENTRY_DSN": "",
|
||||
"H5_ALLOWED_HOSTS": "h5-uat.example.com"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user