Skip to content

[log] Add debug logging to tool_registry_helpers.go#9605

Merged
lpcox merged 1 commit into
mainfrom
log/tool-registry-helpers-3e09b5ab297f1020
Jul 19, 2026
Merged

[log] Add debug logging to tool_registry_helpers.go#9605
lpcox merged 1 commit into
mainfrom
log/tool-registry-helpers-3e09b5ab297f1020

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Summary

Adds meaningful debug logging calls to internal/server/tool_registry_helpers.go using the existing logToolRegistryHelpers logger (server:tool_registry_helpers namespace).

Changes

  • registerToolWithoutValidation: log tool name when registering with the SDK server
  • fetchBackendList: log serverID and method on entry; log error response details (code) when backend returns an error
  • registrationErrors.finish: log a success summary when all backends registered successfully (complements the existing error path log)

Why

These log points cover the key lifecycle events for tool registration and backend list fetching, making it easier to trace registration issues and backend connectivity problems when DEBUG=server:* is enabled.

Validation

  • go test ./internal/server/ — all tests pass
  • go vet ./internal/server/ — no issues
  • go build — compiles successfully

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • awmgmcpg

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "awmgmcpg"

See Network Configuration for more information.

Generated by Go Logger Enhancement · 135.2 AIC · ⊞ 7.6K ·

Add meaningful debug logging calls to internal/server/tool_registry_helpers.go
using the existing logToolRegistryHelpers logger (server:tool_registry_helpers namespace):

- registerToolWithoutValidation: log tool name when registering
- fetchBackendList: log serverID and method on entry, and error responses
- registrationErrors.finish: log success summary when all backends registered

These logs help diagnose tool registration issues and backend connectivity
problems during development and production troubleshooting.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot added automation enhancement New feature or request labels Jul 18, 2026
@lpcox
lpcox marked this pull request as ready for review July 19, 2026 06:05
Copilot AI review requested due to automatic review settings July 19, 2026 06:05

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

Adds targeted debug logging for tool registration and backend list operations.

Changes:

  • Logs tool registration and backend list requests/errors.
  • Logs successful completion across all backends.
Show a summary per file
File Description
internal/server/tool_registry_helpers.go Adds lifecycle and error-response debug logs.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Medium

@lpcox
lpcox merged commit c54d29f into main Jul 19, 2026
21 checks passed
@lpcox
lpcox deleted the log/tool-registry-helpers-3e09b5ab297f1020 branch July 19, 2026 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants