From 5fdd0da9eee02492425a3275e11667a14507bdc6 Mon Sep 17 00:00:00 2001 From: Prem Chaitanya Prathi Date: Thu, 25 Jan 2024 19:39:49 +0530 Subject: [PATCH] chore: set log level for all loggers based on logger passed (#1011) --- waku/v2/node/wakuoptions.go | 1 + 1 file changed, 1 insertion(+) diff --git a/waku/v2/node/wakuoptions.go b/waku/v2/node/wakuoptions.go index fcfb02d3..5cbb4f24 100644 --- a/waku/v2/node/wakuoptions.go +++ b/waku/v2/node/wakuoptions.go @@ -155,6 +155,7 @@ func (w WakuNodeParameters) AddressFactory() basichost.AddrsFactory { func WithLogger(l *zap.Logger) WakuNodeOption { return func(params *WakuNodeParameters) error { params.logger = l + logging.SetAllLoggers(logging.LogLevel(l.Level())) logging.SetPrimaryCore(l.Core()) return nil }