From ea0327d4d83c916205c8cec5a747fd933507955f Mon Sep 17 00:00:00 2001 From: YongXin Date: Fri, 24 Feb 2023 16:15:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BA=86=E4=B8=8B=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bootstrap/telegram.go | 3 +-- main.go | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap/telegram.go b/bootstrap/telegram.go index 6c12cd8..900ef83 100644 --- a/bootstrap/telegram.go +++ b/bootstrap/telegram.go @@ -1,7 +1,6 @@ package bootstrap import ( - "fmt" "strings" "time" @@ -95,7 +94,7 @@ func StartTelegramBot() { continue } - fmt.Println(send.Text) + log.Println(send.Text) } select {} diff --git a/main.go b/main.go index c1de36c..0543265 100644 --- a/main.go +++ b/main.go @@ -7,6 +7,7 @@ import ( ) func main() { + log.SetReportCaller(true) err := config.LoadConfig() if err != nil { log.Warn("没有找到配置文件,尝试读取环境变量")