refactor: Standardized logging to be more uniform

This commit is contained in:
Noah 2025-08-31 03:51:36 +02:00
parent 99a81a201b
commit 38db97bdcf
No known key found for this signature in database
GPG key ID: D2A7E2C8F77E0430
8 changed files with 28 additions and 28 deletions

View file

@ -22,11 +22,11 @@ func SetBotCommands(bot *tgbotapi.BotAPI) {
result, err := bot.Request(commands)
if err != nil {
log.Error().Err(err).Msg("Failed to set own commands")
log.Error().Err(err).Msg("Failed to publish commands to Telegram")
return
}
log.Debug().Interface("commands", result).Msg("Set own commands")
log.Debug().Interface("commands", result).Msg("Published commands to Telegram successfully")
}
func Commands(update tgbotapi.Update, bot *tgbotapi.BotAPI) {