Skip to content

fix(connections): remove leaked projectctx debug log - #8539

Merged
trangevi merged 1 commit into
mainfrom
fix/connections-remove-projectctx-log
Jun 5, 2026
Merged

fix(connections): remove leaked projectctx debug log#8539
trangevi merged 1 commit into
mainfrom
fix/connections-remove-projectctx-log

Conversation

@hund030

@hund030 hund030 commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Summary

azd ai connection <command> printed an internal diagnostic (projectctx: resolved endpoint=... source=...) on every invocation. The extension never silenced Go's default logger, so this log.Printf surfaced as user-facing noise.

Changes

  • connection_context.go: Remove the log.Printf from resolveConnectionContext (and the now-unused log import). Endpoint resolution is owned by projectctx.Resolve; any such diagnostic belongs in that package, not in the consuming caller.

resolveConnectionContext logged the resolved endpoint and source on every `azd ai connection` invocation via `log.Printf`. Because the extension never silenced Go's default logger, this surfaced as user-facing noise.

Endpoint resolution is owned by `projectctx.Resolve`; any such diagnostic belongs in that package, not in the consuming caller. Remove the log line and the now-unused `log` import.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Removes an unintended user-visible diagnostic log emitted during azd ai connection <command> execution by deleting a log.Printf in resolveConnectionContext, keeping endpoint-resolution diagnostics inside the projectctx package rather than the consuming caller.

Changes:

  • Removed log.Printf("projectctx: resolved endpoint=... source=...") from resolveConnectionContext.
  • Removed the now-unused log import from connection_context.go.

@github-actions github-actions Bot added the ext-agents azure.ai.agents extension label Jun 5, 2026
@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown

📋 Prioritization Note

Thanks for the contribution! The linked issue isn't in the current milestone yet.
Review may take a bit longer — reach out to @rajeshkamal5050 or @kristenwomack if you'd like to discuss prioritization.

@trangevi
trangevi enabled auto-merge (squash) June 5, 2026 15:47
@trangevi

trangevi commented Jun 5, 2026

Copy link
Copy Markdown
Member

/check-enforcer override

@trangevi
trangevi merged commit f59dbc5 into main Jun 5, 2026
26 of 27 checks passed
@hund030
hund030 deleted the fix/connections-remove-projectctx-log branch June 13, 2026 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ext-agents azure.ai.agents extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[azure.ai.connection] leaks projectctx debug log to terminal on every command

4 participants