move prints from fmt to log module

This commit is contained in:
Akulij 2025-03-27 20:22:58 +08:00
parent 0331f3e29e
commit ce7c1613b1

View File

@ -25,9 +25,9 @@ type BotController struct {
func GetBotController() BotController { func GetBotController() BotController {
cfg := config.GetConfig() cfg := config.GetConfig()
fmt.Printf("Token value: '%v'\n", cfg.BotToken) log.Printf("Token value: '%v'\n", cfg.BotToken)
fmt.Printf("Admin password: '%v'\n", cfg.AdminPass) log.Printf("Admin password: '%v'\n", cfg.AdminPass)
fmt.Printf("Admin ID: '%v'\n", *cfg.AdminID) log.Printf("Admin ID: '%v'\n", *cfg.AdminID)
bot, err := tgbotapi.NewBotAPI(cfg.BotToken) bot, err := tgbotapi.NewBotAPI(cfg.BotToken)
if err != nil { if err != nil {