mirror of
https://wget.la/https://github.com/leookun/cursor-byok
synced 2026-12-01 01:05:10 +08:00
refactor: improve error handling and logging in plugin and account services
- Added detailed error messages for plugin data read/write failures, including file paths for better debugging. - Updated logging levels for upstream request rejections in account services to debug for less critical issues. - Enhanced error handling in the plugin worker to provide clearer context when starting the plugin worker fails. - Introduced new functions for merging extra parameters and applying body allowlists in provider services, improving request validation.
This commit is contained in:
1 parent
43a18377b6
commit
3a2d47954e
5 files changed
+98
-65
No files matched your search
@@ -254,7 +254,7 @@ async fn forward_or(
|
||||
match proxy::forward_buffered(&upstream, request).await {
|
||||
Ok(response) if response.status.is_success() => Ok(response.into_response()),
|
||||
Ok(response) => {
|
||||
tracing::warn!(status = %response.status, "Cursor identity upstream rejected request; using local identity");
|
||||
tracing::debug!(status = %response.status, "Cursor identity upstream rejected request; using local identity");
|
||||
fallback()
|
||||
}
|
||||
Err(error) => {
|
||||
|
||||
Reference in new issue
Block a user