Skip to content

chore: use %e token anywhere we are logging errors with @libp2p/logger #3175

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

SuchitraSwain
Copy link

Title

Description

Notes & open questions

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if necessary (this includes comments as well)
  • I have added tests that prove my fix is effective or that my feature works

Copy link
Member

@achingbrain achingbrain left a comment

Choose a reason for hiding this comment

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

Please revert all formatting changes.

@SuchitraSwain SuchitraSwain requested a review from achingbrain June 4, 2025 11:38
Copy link
Member

@achingbrain achingbrain left a comment

Choose a reason for hiding this comment

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

There are still unrelated changes here.

@SuchitraSwain SuchitraSwain requested a review from achingbrain June 4, 2025 13:47
Copy link
Member

@SgtPooki SgtPooki left a comment

Choose a reason for hiding this comment

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

thanks for throwing this together.. some minor issues and will probably need Alex's input on a few of them

@SuchitraSwain SuchitraSwain requested a review from SgtPooki June 5, 2025 09:12
Copy link
Member

@achingbrain achingbrain left a comment

Choose a reason for hiding this comment

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

There are still unrelated formatting changes here.

log.error(err)
})
.catch(err => {
log.error('incoming stream handler error - %e', err)
Copy link
Member

Choose a reason for hiding this comment

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

Good to add more context to this message but there is an unrelated formatting change, please keep the additional context but revert the reformatting.

@p-shahi
Copy link
Member

p-shahi commented Jun 10, 2025

@SuchitraSwain thanks for the PR - for next steps. Please address the review comments left here

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.

4 participants