Skip to content

refactor: improve debug information in HTTP handler logging - #3052

Merged
melekes merged 4 commits into
cometbft:mainfrom
mmsqe:unsupported_log
May 14, 2024
Merged

melekes merged 4 commits into
cometbft:mainfrom
mmsqe:unsupported_log

Conversation

@mmsqe

@mmsqe mmsqe commented May 10, 2024 •

Copy link
Copy Markdown
Contributor

Updates: #1505


PR checklist

  • Tests written/updated
  • Changelog entry added in .changelog (we use unclog to manage our changelog)
  • Updated relevant documentation (docs/ or spec/) and code comments
  • Title follows the Conventional Commits spec

@mmsqe
mmsqe requested a review from a team as a code owner May 10, 2024 01:19
@mmsqe
mmsqe requested a review from a team May 10, 2024 01:19

@melekes melekes left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks @mmsqe ❤️

@melekes melekes added backport-to-v0.34.x backport-to-v0.38.x Tell Mergify to backport the PR to v0.38.x labels May 10, 2024
@melekes

melekes commented May 10, 2024

Copy link
Copy Markdown
Collaborator

I don't think the PR addresses #1505 because logger.Debug doesn't return an error.

@melekes melekes removed backport-to-v0.34.x backport-to-v0.38.x Tell Mergify to backport the PR to v0.38.x labels May 10, 2024
@mmsqe

mmsqe commented May 10, 2024 •

Copy link
Copy Markdown
Contributor Author

I don't think the PR addresses #1505 because logger.Debug doesn't return an error.

You're right, this change is mainly for the log but seems the abci_query from origin issue is not correctly called.

@andynog andynog added rpc logs Anything relating to logging labels May 13, 2024

@sergio-mena sergio-mena left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for this @mmsqe , please update the PRs title to better reflect what the PR is achieving (improving debug information)

@mmsqe mmsqe changed the title fix: avoid unsupported type when marshaling http.Request in log fix: improve debug information in HTTP handler logging May 14, 2024
@melekes melekes changed the title fix: improve debug information in HTTP handler logging refactor: improve debug information in HTTP handler logging May 14, 2024
@melekes
melekes added this pull request to the merge queue May 14, 2024
Merged via the queue into cometbft:main with commit ddfc62c May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

logs Anything relating to logging rpc

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants