mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 16:07:15 +02:00
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
This commit is contained in:
parent
7748ef072d
commit
8b0b54e997
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue