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.
This commit is contained in:
Ivan Fraixedes 2019-09-13 12:04:12 +02:00 committed by GitHub
parent 4266f8c364
commit 8a48500ba4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()