Skip to content

Commit a949174

Browse files
committed
server: improve ShouldHandleTraffic logging
Improve logging for HandleTraffic method to include fundingBlob in hexadecimal format
1 parent 94a1a07 commit a949174

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -997,8 +997,8 @@ func (s *Server) ChannelFinalized(pid funding.PendingChanID) error {
997997
func (s *Server) ShouldHandleTraffic(cid lnwire.ShortChannelID,
998998
fundingBlob lfn.Option[tlv.Blob]) (bool, error) {
999999

1000-
srvrLog.Debugf("HandleTraffic called, cid=%v, fundingBlob=%v", cid,
1001-
spew.Sdump(fundingBlob))
1000+
srvrLog.Debugf("HandleTraffic called (cid=%v, fundingBlob=%x)", cid,
1001+
fundingBlob.UnwrapOr(tlv.Blob{}))
10021002

10031003
if err := s.waitForReady(); err != nil {
10041004
return false, err

0 commit comments

Comments
 (0)