fix_: disable libp2p logs in prod (#5740)

This commit is contained in:
Igor Sirotin 2024-08-19 12:58:21 +01:00 committed by GitHub
parent 759034ec7a
commit ab675a2c99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -318,7 +318,7 @@ func New(nodeKey *ecdsa.PrivateKey, fleet string, cfg *Config, logger *zap.Logge
pubsub.WithMaxMessageSize(int(waku.cfg.MaxMessageSize)),
}
if waku.logger.Level() == zap.DebugLevel {
if testing.Testing() {
relayOpts = append(relayOpts, pubsub.WithEventTracer(waku))
}