mirror of https://github.com/status-im/go-waku.git
chore: set log level for all loggers based on logger passed (#1011)
This commit is contained in:
parent
190d8e8e08
commit
5fdd0da9ee
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue