Skip to content

chore: migrate log.Printf to log/slog in llmpool, llmrec, intercept and db - #523

Open
rahulremany wants to merge 1 commit into
BaaRai:mainfrom
rahulremany:chore/slog-llmpool-llmrec-intercept-db
Open

rahulremany wants to merge 1 commit into
BaaRai:mainfrom
rahulremany:chore/slog-llmpool-llmrec-intercept-db

Conversation

@rahulremany

Copy link
Copy Markdown

Summary

Follow-up to #488. This moves the remaining log.Printf calls in llmpool, llmrec, intercept and db (18 calls, 8 files) to log/slog. Messages keep their [tag] prefix, the format arguments become structured attributes, and levels are Warn for failover and breaker events and Error for failed writes and dropped outbox entries. server, agent and cmd/artex are left for separate PRs to keep review small.

Test plan

  • gofmt -l, go build ./... and go vet are clean.
  • go test -p 1 ./llmpool ./llmrec ./intercept ./db passes against Postgres 16.
  • intercept/store_error_test.go, which checks the captured log output, still passes.

…nd db

Follow-up to BaaRai#488. Replaces the remaining 18 log.Printf calls in these four
packages with structured slog calls, keeping the [tag] prefix that the log
sink uses. Format arguments become key/value attributes.
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.

1 participant