S3Utils: Replace S.o.println with log.warn

This commit is contained in:
Gian Merlino 2013-11-02 15:24:05 -07:00
parent f8e564469f
commit 50a8c806c3
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ public class S3Utils
final long maxSleepMillis = 60000;
final double fuzzyMultiplier = Math.min(Math.max(1 + 0.2 * new Random().nextGaussian(), 0), 2);
final long sleepMillis = (long) (Math.min(maxSleepMillis, baseSleepMillis * Math.pow(2, nTry)) * fuzzyMultiplier);
System.out.println(String.format("S3 fail on try %d, retrying in %,dms.", nTry, sleepMillis));
log.warn("S3 fail on try %d, retrying in %,dms.", nTry, sleepMillis);
Thread.sleep(sleepMillis);
}