diff options
| author | Jonathan Amsterdam <jba@google.com> | 2020-09-23 11:50:20 -0400 |
|---|---|---|
| committer | Jonathan Amsterdam <jba@google.com> | 2020-09-23 21:23:21 +0000 |
| commit | 62450c5bbc168ef2ed9cc4f1c3d5dad35c08fad0 (patch) | |
| tree | 5dbcb4bf4f3b649597374ddc6016e84565b1fd8b /internal/queue/queue.go | |
| parent | 260f57d1f4ecb3beec4e9aa11ed5fe7c9edcf2f5 (diff) | |
| download | go-x-pkgsite-62450c5bbc168ef2ed9cc4f1c3d5dad35c08fad0.tar.xz | |
internal/queue: downgrade ignore message to debug
Change the log message about ignoring a duplicate task from Info to
Debug to avoid cluttering the logs.
Change-Id: I08baadf10e731150cfd5a8be26d28f2598e02bda
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/256763
Trust: Jonathan Amsterdam <jba@google.com>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Julie Qiu <julie@golang.org>
Diffstat (limited to 'internal/queue/queue.go')
| -rw-r--r-- | internal/queue/queue.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/queue/queue.go b/internal/queue/queue.go index 110c72a3..64bbfae9 100644 --- a/internal/queue/queue.go +++ b/internal/queue/queue.go @@ -130,7 +130,7 @@ func (q *GCP) ScheduleFetch(ctx context.Context, modulePath, version, suffix str enqueued = true if _, err := q.client.CreateTask(ctx, req); err != nil { if status.Code(err) == codes.AlreadyExists { - log.Infof(ctx, "ignoring duplicate task ID %s: %s@%s", req.Task.Name, modulePath, version) + log.Debugf(ctx, "ignoring duplicate task ID %s: %s@%s", req.Task.Name, modulePath, version) enqueued = false } else { return false, fmt.Errorf("q.client.CreateTask(ctx, req): %v", err) |
