From 47ce718d29aa8f507a46348ce6769c8971bd8388 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Tue, 14 Jul 2020 19:25:03 -0700 Subject: [PATCH] chainntnfs: wrap disabled height hint query logs --- chainntnfs/height_hint_cache.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/chainntnfs/height_hint_cache.go b/chainntnfs/height_hint_cache.go index ba6b8bc8..018afbef 100644 --- a/chainntnfs/height_hint_cache.go +++ b/chainntnfs/height_hint_cache.go @@ -158,8 +158,9 @@ func (c *HeightHintCache) CommitSpendHint(height uint32, // cache for the outpoint. func (c *HeightHintCache) QuerySpendHint(spendRequest SpendRequest) (uint32, error) { var hint uint32 - Log.Debugf("Ignoring spend height hint for %v (height hint cache query disabled)", spendRequest) if c.cfg.QueryDisable { + Log.Debugf("Ignoring spend height hint for %v (height hint cache "+ + "query disabled)", spendRequest) return 0, nil } err := kvdb.View(c.db, func(tx kvdb.RTx) error { @@ -256,8 +257,9 @@ func (c *HeightHintCache) CommitConfirmHint(height uint32, // the cache for the transaction hash. func (c *HeightHintCache) QueryConfirmHint(confRequest ConfRequest) (uint32, error) { var hint uint32 - Log.Debugf("Ignoring confirmation height hint for %v (height hint cache query disabled)", confRequest) if c.cfg.QueryDisable { + Log.Debugf("Ignoring confirmation height hint for %v (height hint "+ + "cache query disabled)", confRequest) return 0, nil } err := kvdb.View(c.db, func(tx kvdb.RTx) error {