From 48f75270f4e17f0a5cf4c4df32ca570cf2ee789a Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期一, 29 六月 2020 19:39:28 +0800
Subject: [PATCH] add log
---
eventPush.go | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/eventPush.go b/eventPush.go
index 090ece0..c32c6c6 100644
--- a/eventPush.go
+++ b/eventPush.go
@@ -3,7 +3,6 @@
import (
"basic.com/pubsub/protomsg.git"
"encoding/json"
- "fmt"
"strconv"
)
@@ -35,7 +34,7 @@
var res Result
if err = json.Unmarshal(body, &res); err != nil {
- fmt.Println(err)
+ logPrint(err)
return false,nil
}
@@ -92,7 +91,7 @@
bytes, _ := json.Marshal(res.Data)
err = json.Unmarshal(bytes, &allRules)
if err !=nil{
- fmt.Println("all eventPushRules unmarshal err:",err)
+ logPrint("all eventPushRules unmarshal err:",err)
return false,nil
}
return true,allRules
--
Gitblit v1.8.0