Add logging statement for # of tasks in DNS queue

This will make DNS issues easier to debug retroactively as we will be
able to determine, by looking at the logs, if the queue size was growing
unbounded.

Also adds some logging helpers to allow programmatically choosing the level
of logging.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=163123783
This commit is contained in:
mcilwain 2017-07-25 14:31:19 -07:00 committed by Ben McIlwain
parent 1a1fdfd531
commit 8869814e96
3 changed files with 24 additions and 4 deletions

View file

@ -45,7 +45,7 @@ public class DnsQueueTest {
@Before
public void init() {
dnsQueue = DnsQueue.create();
dnsQueue.writeBatchSize = 10;
dnsQueue.leaseTasksBatchSize = 10;
}
@Test