From 6d7c9e92d6b188f835ff719d4e8a450cb4eac124 Mon Sep 17 00:00:00 2001 From: Jay Date: Mon, 1 Oct 2018 22:50:27 +0800 Subject: [PATCH] add log --- router/line/line.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/router/line/line.go b/router/line/line.go index 463ec57..3507843 100644 --- a/router/line/line.go +++ b/router/line/line.go @@ -5,6 +5,7 @@ import ( "crypto/sha256" "encoding/base64" "encoding/json" + "fmt" "io/ioutil" "git.trj.tw/golang/mtfosbot/module/config" @@ -71,6 +72,8 @@ func GetLineMessage(c *context.Context) { c.DataFormat("body type error") } + fmt.Println("Line Hook ::: ", string(raw)) + events := struct { Events []*lineobj.EventObject `json:"events"` }{}