From bc029b9cd4c15ff974c4e232fb4a606e9fea4f8c Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 10 Apr 2018 16:55:23 -0700 Subject: [PATCH] contractcourt: properly log error if unable to update chan close state --- contractcourt/chain_watcher.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contractcourt/chain_watcher.go b/contractcourt/chain_watcher.go index 7daf5668f..2d2d49916 100644 --- a/contractcourt/chain_watcher.go +++ b/contractcourt/chain_watcher.go @@ -747,8 +747,8 @@ func (c *CooperativeCloseCtx) LogPotentialClose(potentialClose *channeldb.Channe err := c.watcher.chanState.CloseChannel(potentialClose) if err != nil { log.Warnf("unable to update latest close for "+ - "ChannelPoint(%v)", - c.watcher.chanState.FundingOutpoint) + "ChannelPoint(%v): %v", + c.watcher.chanState.FundingOutpoint, err) } err = c.watcher.markChanClosed()