From 8a48500ba4a00814bb2d309a51fad430922b4a2c Mon Sep 17 00:00:00 2001 From: Ivan Fraixedes Date: Fri, 13 Sep 2019 12:04:12 +0200 Subject: [PATCH] uplink/ecclient: Report success in debug level (#3037) Packages shouldn't be chatty when the things go as expected unless the DEBUG log level is set. --- uplink/ecclient/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uplink/ecclient/client.go b/uplink/ecclient/client.go index 693f97571..2e657809d 100644 --- a/uplink/ecclient/client.go +++ b/uplink/ecclient/client.go @@ -143,7 +143,7 @@ func (ec *ecClient) Put(ctx context.Context, limits []*pb.AddressedOrderLimit, p atomic.AddInt32(&successfulCount, 1) if int(successfulCount) >= rs.OptimalThreshold() { - ec.log.Info("Success threshold reached. Cancelling remaining uploads.", + ec.log.Debug("Success threshold reached. Cancelling remaining uploads.", zap.Int("Optimal Threshold", rs.OptimalThreshold()), ) cancel()