Skip to content

feat(rpcserver): add INFO level request logging#69

Merged
odysseus0 merged 1 commit intomainfrom
feat/rpcserver-request-logging
Feb 5, 2026
Merged

feat(rpcserver): add INFO level request logging#69
odysseus0 merged 1 commit intomainfrom
feat/rpcserver-request-logging

Conversation

@odysseus0
Copy link
Contributor

Summary

Log completed JSON-RPC requests at INFO level with method, duration, and status.

Problem

The rpcserver had no request logging at all - only metrics. This made it impossible to verify if requests were hitting the service without enabling verbose debugging or checking metrics dashboards.

Solution

Add INFO level logging in the ServeHTTP defer block:

  • Method name
  • Duration
  • Status (ok/error)
  • Server name

Example output:

{"level":"INFO","msg":"Request completed","method":"ofa_getAuctionStats","duration":"2.5ms","status":"ok","server":"events-api-public"}

Test plan

  • Existing tests pass
  • Lint passes

🤖 Generated with Claude Code

Log completed requests at INFO level with method, duration, and status.
This improves observability - operators can now see requests hitting
the service without enabling DEBUG logging.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@odysseus0 odysseus0 merged commit 9562462 into main Feb 5, 2026
2 checks passed
@odysseus0 odysseus0 deleted the feat/rpcserver-request-logging branch February 5, 2026 19:17
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