优化了下日志

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
import (
"fmt"
"strings"
"time"
@ -95,7 +94,7 @@ func StartTelegramBot() {
continue
}
fmt.Println(send.Text)
log.Println(send.Text)
}
select {}

View File

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