From 81b65c3b1f8857409f8548372aabae9945a79c93 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 11 May 2019 13:08:00 +0800 Subject: [PATCH] test --- bot.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bot.go b/bot.go index 4051a4d..fbde19f 100644 --- a/bot.go +++ b/bot.go @@ -78,6 +78,7 @@ func botMsgRescan(m *tb.Message) (string, error) { p := JobPayloadRescanMsg{} fmt.Sprintf(p.Query, "SELECT o.id from obj o where o.id = %s and o.obj_type_id = %d and o.obj_sub_type_id = %d;", m.Payload, objTypeMessage, objSubTypeMessageUnknown) b, _ := json.Marshal(p) + log.Printf("botMsgRescan : %s\n", string(b)) err := createJob(objSubTypeJobRescanMsg, objJobPriorityRescanMsg, time.Now(), b) logOnError(err, "botMsgRescan : createJob(objSubTypeJobRescanMsg)") if err != nil { @@ -92,6 +93,7 @@ func botMsgRescan(m *tb.Message) (string, error) { p := JobPayloadRescanMsg{} fmt.Sprintf(p.Query, "SELECT o.id from obj o where o.obj_type_id = %d and o.obj_sub_type_id = %d;", objTypeMessage, objSubTypeMessageUnknown) b, _ := json.Marshal(p) + log.Printf("botMsgRescan : %s\n", string(b)) err := createJob(objSubTypeJobRescanMsg, objJobPriorityRescanAllMsg, time.Now(), b) logOnError(err, "botMsgRescan : createJob(objSubTypeJobRescanMsg)") if err != nil {