move prints from fmt to log module
This commit is contained in:
parent
0331f3e29e
commit
ce7c1613b1
@ -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 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user