Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[log] Add debug logging to delegation RuntimeConfig - #13064

Draft
github-actions[bot] wants to merge 1 commit into
mainfrom
log/delegation-config-1789255605-dd01668df41c911b
Draft

[log] Add debug logging to delegation RuntimeConfig#13064
github-actions[bot] wants to merge 1 commit into
mainfrom
log/delegation-config-1789255605-dd01668df41c911b

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Summary

Adds debug logging to internal/delegation/config.go, which previously had no logger despite containing meaningful startup validation logic used by both internal/server/unified.go and internal/proxy/proxy.go.

Changes

  • Added logConfig logger via logger.ForFile() (namespace delegation:config).
  • RuntimeConfig.Validate(): logs each of the four failure branches (nil config, missing store, missing capability, missing state path) plus a success log including statePath and controlListenAddr.
  • RuntimeConfig.ControlDeps(): logs when called on a nil config, since that path silently returns a zero value that disables delegation control.

Validation

  • go build -o awmg ./... — succeeds
  • go vet ./internal/delegation/... — clean
  • go test ./internal/delegation/... — passes
  • gofmt -l internal/delegation/config.go — no issues

Generated by Go Logger Enhancement · copilot · auto · 54.5 AIC · ⊞ 11.7K ·

Add logConfig logger (namespace delegation:config) to internal/delegation/config.go
and log meaningful events in Validate() and ControlDeps():
- each validation failure branch (nil config, missing store, missing
  capability, missing state path)
- successful validation with statePath/controlListenAddr
- ControlDeps() called on a nil config (delegation disabled)

Co-authored-by: Copilot <[email protected]>
@github-actions github-actions Bot added automation enhancement New feature or request labels Sep 12, 2026
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.

0 participants