From 90ffc4a0ab7124a20f6faabedfcf4c0cd7ae44a1 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Mon, 1 Apr 2019 18:21:07 -0700 Subject: [PATCH] chainntnfs/bitcoindnotify: improve historical conf dispatch logging --- chainntnfs/bitcoindnotify/bitcoind.go | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/chainntnfs/bitcoindnotify/bitcoind.go b/chainntnfs/bitcoindnotify/bitcoind.go index 74e525ab..b7e598fb 100644 --- a/chainntnfs/bitcoindnotify/bitcoind.go +++ b/chainntnfs/bitcoindnotify/bitcoind.go @@ -228,7 +228,13 @@ out: msg.StartHeight, msg.EndHeight, ) if err != nil { - chainntnfs.Log.Error(err) + chainntnfs.Log.Errorf("Rescan to "+ + "determine the conf "+ + "details of %v within "+ + "range %d-%d failed: %v", + msg.ConfRequest, + msg.StartHeight, + msg.EndHeight, err) return } @@ -243,7 +249,10 @@ out: msg.ConfRequest, confDetails, ) if err != nil { - chainntnfs.Log.Error(err) + chainntnfs.Log.Errorf("Unable "+ + "to update conf "+ + "details of %v: %v", + msg.ConfRequest, err) } }()