Skip to content

fix(p2p/libp2p): redirect p2p-forge zap logger output to stdout#5393

Open
gacevicljubisa wants to merge 1 commit intomasterfrom
fix/p2p-forge-zap-logger-stdout
Open

fix(p2p/libp2p): redirect p2p-forge zap logger output to stdout#5393
gacevicljubisa wants to merge 1 commit intomasterfrom
fix/p2p-forge-zap-logger-stdout

Conversation

@gacevicljubisa
Copy link
Member

Checklist

  • I have read the coding guide.
  • My change requires a documentation update, and I have done it.
  • I have added tests to cover my changes.
  • I have filled out the description and linked the related issues.

Description

The zap logger created for the p2p-forge certificate manager was configured to write to stderr (OutputPaths: ["stderr"], ErrorOutputPaths: ["stderr"]). However, bee's own logger is instantiated with cmd.OutOrStdout() as its sink, which defaults to os.Stdout. This caused p2p-forge/certmagic logs to be emitted to a different stream than all other bee logs.

Open API Spec Version Changes (if applicable)

Motivation and Context (Optional)

Related Issue (Optional)

Screenshots (if appropriate):

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.

3 participants