From f7c4a3cfd07adede3308f8d9d3d7315427d90a7c Mon Sep 17 00:00:00 2001
From: zhangmeng <zhangmeng@aiotlink.com>
Date: 星期五, 17 一月 2020 09:40:08 +0800
Subject: [PATCH] bug fixed logs print copy

---
 run.go |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/run.go b/run.go
index 290607d..67a420d 100644
--- a/run.go
+++ b/run.go
@@ -120,8 +120,8 @@
 		postPush = `_1`
 	)
 
-	ipcSnd := url + postPush
-	ipcRcv := url + postPull
+	ipcSnd := s.ipc + postPush
+	ipcRcv := s.ipc + postPull
 
 	sndURL := sdkhelper.GetIpcAddress(true, ipcSnd)
 	rcvURL := sdkhelper.GetIpcAddress(true, ipcRcv)
@@ -144,6 +144,7 @@
 			return
 		case msg := <-chMsg:
 			if len(msg.Tasklab.Sdkinfos) == 0 || int(msg.Tasklab.Index) >= len(msg.Tasklab.Sdkinfos) {
+				s.fnLogger("reid !!!!!! recv msg error")
 				continue
 			}
 			i := sdkhelper.UnpackImage(msg, "reid", s.fnLogger)
@@ -153,6 +154,8 @@
 			}
 
 			sdkInfo := msg.Tasklab.Sdkinfos[int(msg.Tasklab.Index)]
+			s.fnLogger("reid !!!!!! recv from humantrack len: ", len(sdkInfo.Sdkdata))
+
 			res := &protomsg.HumanTrackResult{}
 			if err := proto.Unmarshal(sdkInfo.Sdkdata, res); err != nil {
 				s.fnLogger(err, " sdkinfo msg Unmarshal 澶勭悊寮傚父")
@@ -183,6 +186,8 @@
 						s.fnLogger(err, " msg Marshal 澶勭悊寮傚父")
 						continue
 					}
+					s.fnLogger("reid !!!!!! send to humantrack len: ", len(data))
+
 					chSnd <- data
 				}
 			}

--
Gitblit v1.8.0