From e220663e71c538a9e52e83d485b300c95b200eb2 Mon Sep 17 00:00:00 2001 From: Jay Date: Tue, 18 Dec 2018 17:12:09 +0800 Subject: [PATCH] add log --- module/message-command/message-command.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/module/message-command/message-command.go b/module/message-command/message-command.go index d6440c1..9451df1 100644 --- a/module/message-command/message-command.go +++ b/module/message-command/message-command.go @@ -1,6 +1,7 @@ package msgcmd import ( + "log" "regexp" "strings" @@ -92,6 +93,7 @@ func parseResult(str string) interface{} { } } + log.Println("command result ::::: ", m) return m } @@ -113,5 +115,6 @@ func runCMD(txt, c string, s *lineobj.SourceObject) (res string) { res = strings.Replace(res, v[0], cmdRes, 1) } } + log.Println("run cmd ::::: ", res) return }