From 4f6f5ae6f0d6a7b32d962e99d01eba13c4c0d8e9 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Thu, 18 Dec 2014 17:02:43 -0800 Subject: [PATCH] consul: Improve log message --- consul/state_store.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/consul/state_store.go b/consul/state_store.go index feeec3ca0..825c0131a 100644 --- a/consul/state_store.go +++ b/consul/state_store.go @@ -1458,19 +1458,19 @@ func (s *StateStore) ReapTombstones(index uint64) error { } }() if err := s.tombstoneTable.StreamTxn(streamCh, tx, "id"); err != nil { - s.logger.Printf("[ERR] consul.state: Failed to scan tombstones: %v", err) + s.logger.Printf("[ERR] consul.state: failed to scan tombstones: %v", err) return fmt.Errorf("failed to scan tombstones: %v", err) } <-doneCh // Delete each tombstone if len(toDelete) > 0 { - s.logger.Printf("[DEBUG] consul.state: Reaping %d tombstones", len(toDelete)) + s.logger.Printf("[DEBUG] consul.state: reaping %d tombstones up to %d", len(toDelete), index) } for _, key := range toDelete { num, err := s.tombstoneTable.DeleteTxn(tx, "id", key) if err != nil { - s.logger.Printf("[ERR] consul.state: Failed to delete tombstone: %v", err) + s.logger.Printf("[ERR] consul.state: failed to delete tombstone: %v", err) return fmt.Errorf("failed to delete tombstone: %v", err) } if num != 1 {