Skip to content

feat: add ip to route log entry#16

Merged
sethgrid merged 2 commits into
mainfrom
feat/log-ip-in-route-entry
Apr 14, 2026
Merged

feat: add ip to route log entry#16
sethgrid merged 2 commits into
mainfrom
feat/log-ip-in-route-entry

Conversation

@sethgrid
Copy link
Copy Markdown
Owner

Summary

  • Adds ip field to the route log entry in the logger middleware
  • RealIP middleware already runs before the logger in the stack, so r.RemoteAddr contains the real client IP (not the proxy loopback)
  • Mirrors the pattern from voodoocall where ip is confirmed working in production logs

Test plan

  • Existing logger tests pass (they don't assert on specific field names, no changes needed)
  • go build ./... clean

🤖 Generated with Claude Code

sethgrid and others added 2 commits April 14, 2026 07:35
RealIP middleware is already in the stack before the logger, so
r.RemoteAddr contains the real client IP. Mirror the pattern from
voodoocall where ip is a first-class field on every route log line.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@sethgrid sethgrid merged commit 9225271 into main Apr 14, 2026
4 checks passed
@sethgrid sethgrid deleted the feat/log-ip-in-route-entry branch April 14, 2026 11:41
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