From 82999d9310fe51d87cfc6be4c1c00faf5e2bc4e2 Mon Sep 17 00:00:00 2001 From: shoopea Date: Fri, 31 May 2019 09:16:40 +0800 Subject: [PATCH] test --- client.go | 2 -- job.go | 6 +----- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/client.go b/client.go index 5ebb869..1c4c604 100644 --- a/client.go +++ b/client.go @@ -6,8 +6,6 @@ import ( ) func clientSendCWMsg(userID64 int64, s string) { - log.Printf("clientSendCWMsg : s : %s\n", s) - log.Printf("clientSendCWMsg : userID64 : %d\n", userID64) c := TGCommand{ Type: commandSendMsg, Text: s, diff --git a/job.go b/job.go index 16b1d59..736deba 100644 --- a/job.go +++ b/job.go @@ -3,7 +3,6 @@ package main import ( "encoding/json" "fmt" - "log" "strconv" "time" ) @@ -358,10 +357,7 @@ func jobMsgClient(j Job) { err = json.Unmarshal(j.Payload, &p) logOnError(err, "jobMsgClient : Unmarshal payload") - log.Printf("jobMsgClient : Msg : %s\n", p.Msg) - log.Printf("jobMsgClient : UserID64 : %d\n", j.UserID64) - - if err != nil { + if err == nil { clientSendCWMsg(j.UserID64, p.Msg) }