From 00001e7dad802af0cdcf18764c28fe4e5f46aefa Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Thu, 29 Nov 2018 21:25:53 -0800 Subject: [PATCH] watchtower: fix linter errors --- watchtower/lookout/lookout.go | 2 +- watchtower/lookout/punisher.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/watchtower/lookout/lookout.go b/watchtower/lookout/lookout.go index 6cda3c3d..1f6d0fb4 100644 --- a/watchtower/lookout/lookout.go +++ b/watchtower/lookout/lookout.go @@ -134,7 +134,7 @@ func (l *Lookout) watchBlocks(epochs *chainntnfs.BlockEpochEvent) { // that we are monitoring on behalf of our clients. err = l.processEpoch(epoch, block) if err != nil { - log.Errorf("Unable to process %s: %v", + log.Errorf("Unable to process %v: %v", epoch, err) } diff --git a/watchtower/lookout/punisher.go b/watchtower/lookout/punisher.go index f695ef6e..57a6e3a1 100644 --- a/watchtower/lookout/punisher.go +++ b/watchtower/lookout/punisher.go @@ -45,7 +45,7 @@ func (p *BreachPunisher) Punish(desc *JusticeDescriptor, quit <-chan struct{}) e err = p.cfg.PublishTx(justiceTxn) if err != nil && err != lnwallet.ErrDoubleSpend { - log.Errorf("Unable to publish justice txn for client=%s", + log.Errorf("Unable to publish justice txn for client=%s"+ "with breach-txid=%x: %v", desc.SessionInfo.ID, desc.BreachedCommitTx.TxHash(), err) return err