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("没有找到配置文件,尝试读取环境变量")