From acf2c524f372ec1e7f064bc7f42fd4ff13ff1d05 Mon Sep 17 00:00:00 2001 From: Danielle Tomlinson Date: Thu, 3 Jan 2019 14:04:31 +0100 Subject: [PATCH] allocrunner: Standardised discard logs Follow up from https://github.com/hashicorp/nomad/pull/5007#pullrequestreview-186739124 --- client/allocrunner/alloc_runner.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/allocrunner/alloc_runner.go b/client/allocrunner/alloc_runner.go index 1bd8f3020..73ae31f9c 100644 --- a/client/allocrunner/alloc_runner.go +++ b/client/allocrunner/alloc_runner.go @@ -650,13 +650,13 @@ func (ar *allocRunner) Update(update *structs.Allocation) { // and return. This case shouldn't happen, but may in the case of a bug // elsewhere inside the system. if oldUpdate.AllocModifyIndex > update.AllocModifyIndex { - ar.logger.Warn("Discarding allocation update due to newer alloc revision in queue", + ar.logger.Debug("Discarding allocation update due to newer alloc revision in queue", "old_modify_index", oldUpdate.AllocModifyIndex, "new_modify_index", update.AllocModifyIndex) ar.allocUpdatedCh <- oldUpdate return } else { - ar.logger.Trace("Discarding allocation update", + ar.logger.Debug("Discarding allocation update", "skipped_modify_index", oldUpdate.AllocModifyIndex, "new_modify_index", update.AllocModifyIndex) }