From 8b0b54e997ea4897cb8924f8791ff4fff75622f9 Mon Sep 17 00:00:00 2001 From: mmuller Date: Fri, 11 Aug 2017 14:36:52 -0700 Subject: [PATCH] Log new tasks added to the dns-pull queue Log tasks and task count on the input side of the queue so we can track which things go in. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=165026523 --- java/google/registry/dns/DnsQueue.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/java/google/registry/dns/DnsQueue.java b/java/google/registry/dns/DnsQueue.java index 5776daadd..dffb287e1 100644 --- a/java/google/registry/dns/DnsQueue.java +++ b/java/google/registry/dns/DnsQueue.java @@ -77,6 +77,10 @@ public class DnsQueue { * Enqueues the given task type with the given target name to the DNS queue. */ private TaskHandle addToQueue(TargetType targetType, String targetName, String tld) { + int numTasks = queue.fetchStatistics().getNumTasks(); + logger.infofmt( + "Adding task type=%s, target=%s, tld=%s to pull queue %s (%d tasks currently on queue)", + targetType, targetName, tld, DNS_PULL_QUEUE_NAME, numTasks); return queue.add(TaskOptions.Builder .withDefaults() .method(Method.PULL)