You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/11/10 22:38:24 UTC
[12/50] incubator-mynewt-newt git commit: newtmgr connudp;
add back the msg about source of response, but only if debug flag is
set.
newtmgr connudp; add back the msg about source of response, but only
if debug flag is set.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/commit/ef941d4e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/ef941d4e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/ef941d4e
Branch: refs/heads/master
Commit: ef941d4e84c1b4ce26cb6a5fa3c6fee194b778c8
Parents: db57da1
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Wed Oct 26 12:46:37 2016 -0700
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Wed Oct 26 12:46:37 2016 -0700
----------------------------------------------------------------------
newtmgr/transport/connudp.go | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/ef941d4e/newtmgr/transport/connudp.go
----------------------------------------------------------------------
diff --git a/newtmgr/transport/connudp.go b/newtmgr/transport/connudp.go
index 5c5a775..6bd2da8 100644
--- a/newtmgr/transport/connudp.go
+++ b/newtmgr/transport/connudp.go
@@ -23,6 +23,8 @@ import (
"net"
"time"
+ log "github.com/Sirupsen/logrus"
+
"mynewt.apache.org/newt/newtmgr/config"
"mynewt.apache.org/newt/util"
)
@@ -89,7 +91,7 @@ func (cs *ConnUDP) ReadPacket() (*Packet, error) {
err.Error()))
}
data = data[0:nr]
-
+ log.Debugf("Received message from %v %d\n", srcAddr, nr)
pkt, err := NewPacket(uint16(nr))
if err != nil {
return nil, err