Skip to content

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

Open
@SgtPooki

Description

@SgtPooki

Errors should be logged with the error logging token in a format matching - %e

e.g.

log.error('%s socket error - %e', direction, err)

Some code predates the addition of this error logging token. We need to update the js-libp2p codebase to ensure that we log in this format everywhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low: Not priority right noweffort/hoursEstimated to take one or several hoursexp/noviceSomeone with a little familiarity can pick upgood first issueGood issue for new contributorshelp wantedSeeking public contribution on this issuestatus/readyReady to be worked

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions