mirror of
https://github.com/status-im/go-waku.git
synced 2025-01-13 07:14:10 +00:00
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…
x
Reference in New Issue
Block a user