From da0a1cc5a6fb6f834b7fef786aa48f0c3e795985 Mon Sep 17 00:00:00 2001 From: Jay Date: Tue, 11 Dec 2018 11:36:52 +0800 Subject: [PATCH] add log --- router/api/line.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/router/api/line.go b/router/api/line.go index 9f62b0a..5412c53 100644 --- a/router/api/line.go +++ b/router/api/line.go @@ -2,6 +2,7 @@ package api import ( "fmt" + "log" "strconv" "git.trj.tw/golang/mtfosbot/model" @@ -129,6 +130,7 @@ func GetCommandList(c *context.Context) { count, err := model.GetCommandCount(whereMap) if err != nil { + log.Println("error :::: ", err) c.ServerError(nil) return } @@ -137,6 +139,7 @@ func GetCommandList(c *context.Context) { cmds, err := model.GetCommands(whereMap, page.Offset, page.Limit, nil) if err != nil { + log.Println("list error :::: ", err) c.ServerError(nil) return }