Skip to content

add some error logger for http adapter - #12

Merged
Potato-Yao merged 2 commits into
BITNP:masterfrom
Potato-Yao:master
Sep 24, 2026
Merged

Potato-Yao merged 2 commits into
BITNP:masterfrom
Potato-Yao:master

Conversation

@Potato-Yao

Copy link
Copy Markdown
Member

No description provided.

Copilot AI lite review requested due to automatic review settings September 24, 2026 14:17
@Potato-Yao
Potato-Yao merged commit 7f78bf5 into BITNP:master Sep 24, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

No unresolved review issues were identified.

Review effort: Lite
Findings: None

What changed in this PR

Adds HTTP 5xx error logging while keeping client-facing responses generic.

Changes:

  • Adds error-logging middleware around recovery.
  • Captures underlying handler errors.
  • Adds integration tests for logging behavior.
File Description
test/​adapter/​http/​error_log_test.go Tests logging across response classes.
internal/​adapter/​http/​router.go Registers error logging middleware.
internal/​adapter/​http/​middleware/​errorlog.go Implements 5xx request logging.
internal/​adapter/​http/​handler/​tagging.go Records unexpected tagging errors.
internal/​adapter/​http/​handler/​message.go Records unexpected submission errors.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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.

2 participants