Skip to content

Add diagnostic logging to GetFileStreamException catch block#1996

Merged
tyrielv merged 1 commit into
microsoft:masterfrom
tyrielv:tyrielv/handle-diagnostic
Jun 2, 2026
Merged

Add diagnostic logging to GetFileStreamException catch block#1996
tyrielv merged 1 commit into
microsoft:masterfrom
tyrielv:tyrielv/handle-diagnostic

Conversation

@tyrielv
Copy link
Copy Markdown
Contributor

@tyrielv tyrielv commented Jun 1, 2026

The GetFileStreamException catch in GetFileStreamHandlerAsyncHandler silently completed the ProjFS command without logging requestMetadata (SHA, virtual path). The other catch blocks in the same handler (OperationCanceledException, generic Exception) all log this metadata.

This adds a RelatedWarning log call with the HResult value before TryCompleteCommand, providing diagnostic visibility while keeping the severity appropriate for expected/benign HResult.Handle results.

The GetFileStreamException catch in GetFileStreamHandlerAsyncHandler
silently completed the ProjFS command without logging requestMetadata
(SHA, virtual path). Other catch blocks in the same handler all log
this metadata. Add a RelatedWarning with the HResult value for
diagnostic visibility while keeping the severity appropriate for
expected/benign HResult.Handle results.

Assisted-by: Claude Opus 4.6
Signed-off-by: Tyrie Vella <tyrielv@gmail.com>
@tyrielv tyrielv marked this pull request as ready for review June 1, 2026 23:39
@tyrielv tyrielv enabled auto-merge June 1, 2026 23:39
Copy link
Copy Markdown
Contributor

@derrickstolee derrickstolee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good find. Obvious solution.

@tyrielv tyrielv merged commit 7b0c705 into microsoft:master Jun 2, 2026
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants