From 63f4553e4b5a8955554cc8d6a069ecc2781e2f44 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Thu, 2 May 2019 20:47:41 -0700 Subject: [PATCH] more debug --- src/croc/croc.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/croc/croc.go b/src/croc/croc.go index bb9c22d1..28af1e73 100644 --- a/src/croc/croc.go +++ b/src/croc/croc.go @@ -570,7 +570,9 @@ func (c *Client) processMessage(payload []byte) (done bool, err error) { return } err = c.updateState() - + if err != nil { + log.Debugf("got error from updating state: %s",err.Error()) + } return } @@ -687,11 +689,13 @@ func (c *Client) updateState() (err error) { CurrentFileChunks: c.CurrentFileChunks, FilesToTransferCurrentNum: c.FilesToTransferCurrentNum, }) + log.Debugf("sending recipient ready with %d chunks",len(c.CurrentFileChunks)) err = message.Send(c.conn[0], c.Key, message.Message{ Type: "recipientready", Bytes: bRequest, }) if err != nil { + log.Error(err) return } c.Step3RecipientRequestFile = true