mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-29 01:12:24 +08:00
rm logger
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
This commit is contained in:

committed by
Juan Batiz-Benet

parent
3663eef5ac
commit
25b3106e41
@ -73,9 +73,8 @@ func SetupLogging() {
|
|||||||
// SetAllLoggers changes the logging.Level of all loggers to lvl
|
// SetAllLoggers changes the logging.Level of all loggers to lvl
|
||||||
func SetAllLoggers(lvl logging.Level) {
|
func SetAllLoggers(lvl logging.Level) {
|
||||||
logging.SetLevel(lvl, "")
|
logging.SetLevel(lvl, "")
|
||||||
for n, log := range loggers {
|
for n, _ := range loggers {
|
||||||
logging.SetLevel(lvl, n)
|
logging.SetLevel(lvl, n)
|
||||||
log.Noticef("setting logger: %q to %v", n, lvl)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user