Repository navigation
auth: Log skipped tenant/account errors at warn level with stack trace - #2209
Merged
Alex Weininger (alexweininger) merged 2 commits intoMar 4, 2026
Merged
Conversation
Co-authored-by: alexweininger <[email protected]>
Copilot
AI
changed the title
[WIP] Address feedback on skipping failing tenants in subscription listing
auth: Log skipped tenant/account errors at warn level with stack trace
Mar 4, 2026
Alex Weininger (alexweininger)
marked this pull request as ready for review
March 4, 2026 18:19
Alex Weininger (alexweininger)
merged commit Mar 4, 2026
0fa0141
into
alex/harlequin-pinniped
1 check passed
Alex Weininger (alexweininger)
added a commit
that referenced
this pull request
Mar 5, 2026
…2208) * auth: Skip failing tenants instead of aborting subscription listing When listing subscriptions across tenants, a failing tenant (e.g., locked account) would throw a non-NotSignedInError, causing Promise.all to reject and skip all remaining tenants. Now these errors are caught, logged, and the tenant is skipped so other tenants can still be listed. Fixes microsoft/azcode#110 * Bump auth package version * auth: Log skipped tenant/account errors at warn level with stack trace (#2209) * Initial plan * Log skipped tenant/account errors at warn level with stack trace Co-authored-by: alexweininger <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: alexweininger <[email protected]> * feedback --------- Co-authored-by: Copilot <[email protected]>
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.
When subscription listing skips a tenant or account due to a non-auth error (e.g. locked account), the failure was silently swallowed into
logger.debug— invisible in normal VS Code runs unless the user explicitly sets log level to Debug.warnForAccount/warnForTenanthelpers — newprotectedmethods mirroringlogForAccount/logForTenantbut usinglogger.warnwarn— both the account-level and tenant-level skip-on-error paths now call these warn helpers instead of the debug oneserr.stack ?? err.messageforErrorinstances rather than a plaintoString(), so the full stack trace appears in the output channel💡 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.