diff --git a/wakuv2/waku.go b/wakuv2/waku.go index 5eb5fc0d5..24cd65a35 100644 --- a/wakuv2/waku.go +++ b/wakuv2/waku.go @@ -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)) }