From 0fc62f123d3dc305e5219de56173798c2acecb19 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Mon, 19 Jun 2017 16:39:40 +0200 Subject: [PATCH] htlcswitch: log regular channel ID when registering channels --- htlcswitch/switch.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htlcswitch/switch.go b/htlcswitch/switch.go index 8e4b0e77a..41c0fee49 100644 --- a/htlcswitch/switch.go +++ b/htlcswitch/switch.go @@ -7,6 +7,7 @@ import ( "crypto/sha256" + "github.com/davecgh/go-spew/spew" "github.com/go-errors/errors" "github.com/lightningnetwork/lnd/lnrpc" "github.com/lightningnetwork/lnd/lnwallet" @@ -732,8 +733,9 @@ func (s *Switch) addLink(link ChannelLink) error { return err } - log.Infof("Added channel link with short_chan_id=(%v), bandwidth=%v", - link.ShortChanID(), link.Bandwidth()) + log.Infof("Added channel link with chan_id=%v, short_chan_id=(%v), "+ + "bandwidth=%v", link.ChanID(), spew.Sdump(link.ShortChanID()), + link.Bandwidth()) return nil }