优化了下日志

This commit is contained in:
YongXin 2023-02-24 16:15:06 +08:00
parent 45510dba99
commit ea0327d4d8
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,6 @@
package bootstrap package bootstrap
import ( import (
"fmt"
"strings" "strings"
"time" "time"
@ -95,7 +94,7 @@ func StartTelegramBot() {
continue continue
} }
fmt.Println(send.Text) log.Println(send.Text)
} }
select {} select {}

View File

@ -7,6 +7,7 @@ import (
) )
func main() { func main() {
log.SetReportCaller(true)
err := config.LoadConfig() err := config.LoadConfig()
if err != nil { if err != nil {
log.Warn("没有找到配置文件,尝试读取环境变量") log.Warn("没有找到配置文件,尝试读取环境变量")