@cryptotaxi247 / kubo / commits / 4587d1c1c

Fix: Change RM log output to WARN level

Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>

Antonio Navarro Perez committed Dec 7, 2022 at 15:37 UTC 4587d1c1cb01ab0fcc0e320e7e590222d1d7b81e
1 file changed +2 -2
core/node/libp2p/rcmgr_logging.go
+2 -2
@@ -50,11 +50,11 @@ func (n *loggingResourceManager) start(ctx context.Context) {
50 n.limitExceededErrs = make(map[string]int)
51
52 for e, count := range errs {
53 - n.logger.Errorf("Protected from exceeding resource limits %d times: %q.", count, e)
53 + n.logger.Warnf("Protected from exceeding resource limits %d times: %q.", count, e)
54 }
55
56 if len(errs) != 0 {
57 - n.logger.Errorf("Consider inspecting logs and raising the resource manager limits. Documentation: https://github.com/ipfs/kubo/blob/master/docs/config.md#swarmresourcemgr")
57 + n.logger.Warnf("Consider inspecting logs and raising the resource manager limits. Documentation: https://github.com/ipfs/kubo/blob/master/docs/config.md#swarmresourcemgr")
58 }
59
60 n.mut.Unlock()