Closed m-Peter closed 2 months ago
The changes involve modifications to error handling and logging behavior in two distinct files. In api/server.go
, the log level for certain errors is adjusted from error to warning. In services/requester/remote_state.go
, the error handling logic in the GetValue
method is refined to include additional error conditions, specifically addressing both NotFound
and OutOfRange
error codes.
Files | Change Summary |
---|---|
api/server.go, services/requester/... | Adjusted logging level from error to warning for specific conditions in Write method; refined error handling in GetValue method to include additional error code checks. |
sequenceDiagram
participant Client
participant API
participant RemoteLedger
Client->>API: Request data
API->>RemoteLedger: GetValue()
RemoteLedger->>API: Check for error
alt Error not found
API-->>Client: Return data
else Error found
API-->>Client: Return error response
end
🐇 "In the code where the changes play,
Warnings now brighten the way!
Errors refined, a clearer view,
Hop along, we’ve much to do!
With every log and every check,
Our little world is now in deck!" 🐇
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Description
For contributor use:
master
branchFiles changed
in the Github PR explorerSummary by CodeRabbit
Bug Fixes
NotFound
andOutOfRange
error codes are properly managed, leading to a more robust response mechanism.Chores