Repository navigation
Add structured logging to uploadBlob handler for error diagnosis - #18
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: aspiers <100738+aspiers@users.noreply.github.com>
Co-authored-by: aspiers <100738+aspiers@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add logging statements to uploadBlob handler
Add structured logging to uploadBlob handler for error diagnosis
Jan 25, 2026
aspiers
marked this pull request as ready for review
January 25, 2026 20:01
There was a problem hiding this comment.
Pull request overview
This PR adds comprehensive structured logging to the uploadBlob handler to improve error diagnosis in production. The handler lacked visibility into failure points, making 4xx/5xx errors difficult to debug.
Changes:
- Added step-by-step logging with
[uploadBlob]prefix throughout the handler execution path - Added logging for entry/exit points, permission checks, account operations, blob operations, transaction flow, and error contexts
- All error catch blocks now log relevant context before re-throwing
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
aspiers
approved these changes
Jan 25, 2026
Collaborator
|
@copilot You didn't run prettier! |
Co-authored-by: aspiers <100738+aspiers@users.noreply.github.com>
Author
Fixed in commit 0c92ca8. Prettier formatting has been applied to the file. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Successfully added comprehensive logging to the uploadBlob handler to help identify the source of 4xx and 5xx errors.
Completed Tasks
Changes
packages/sds/src/api/com/sds/repo/uploadBlob.ts[uploadBlob]prefix for all logsBenefits
Original prompt
This pull request was created from Copilot chat.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.
Note
Introduces comprehensive logging to improve diagnosability of blob uploads, covering repository resolution, permission checks, and blob lifecycle.
uploadBlobwith entry/exit logs and context (user DID, repo DID, MIME, CID/size)try/catchto log and rethrow errors; no business logic changes[uploadBlob]prefix for filteringWritten by Cursor Bugbot for commit 32b8c91. This will update automatically on new commits. Configure here.