From 1081bbe85ddd42ff736a80b05391b065146286e4 Mon Sep 17 00:00:00 2001 From: Jay Date: Thu, 6 Dec 2018 11:05:39 +0800 Subject: [PATCH] update log --- module/apis/line/line.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/module/apis/line/line.go b/module/apis/line/line.go index 21c8dff..e844d74 100644 --- a/module/apis/line/line.go +++ b/module/apis/line/line.go @@ -69,6 +69,7 @@ func getHeaders() map[string]string { // PushMessage - func PushMessage(target string, message interface{}) { + log.Println("push target :::: ", target) if len(target) == 0 { return } @@ -95,6 +96,7 @@ func PushMessage(target string, message interface{}) { body.Messages = append(body.Messages, message) dataByte, err := json.Marshal(body) if err != nil { + log.Println("to json error ::::", err) return } @@ -102,6 +104,7 @@ func PushMessage(target string, message interface{}) { apiURL, ok := getURL(urlPath) if !ok { + log.Println("get url fail ::::::") return } @@ -114,6 +117,7 @@ func PushMessage(target string, message interface{}) { req, err := apis.GetRequest(reqObj) if err != nil { + log.Println("get req fail :::::: ", err) return }