mirror of
https://github.com/watn3y/steamsalty.git
synced 2025-09-09 01:32:23 +02:00
refactor: Standardized logging to be more uniform
This commit is contained in:
parent
99a81a201b
commit
38db97bdcf
8 changed files with 28 additions and 28 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue