htlcswitch: log regular channel ID when registering channels

This commit is contained in:
Olaoluwa Osuntokun 2017-06-19 16:39:40 +02:00
parent 10ca654054
commit 0fc62f123d
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2
1 changed files with 4 additions and 2 deletions

View File

@ -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
}