Skip to content

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

Merged
gacevicljubisa merged 1 commit intomasterfrom
fix/p2p-forge-zap-logger-stdout
Mar 12, 2026
Merged

fix(p2p/libp2p): redirect p2p-forge zap logger output to stdout#5393
gacevicljubisa merged 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):

@gacevicljubisa gacevicljubisa merged commit 922bc41 into master Mar 12, 2026
16 checks passed
@gacevicljubisa gacevicljubisa deleted the fix/p2p-forge-zap-logger-stdout branch March 12, 2026 20:54
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