Merge branch 'bot-avatar-logging-fixes' into 'main'

bot: fix logging when updating avatar and display name

See merge request beeper/discord!3
This commit is contained in:
Gary Kramlich
2022-04-01 23:29:07 +00:00

View File

@@ -20,8 +20,9 @@ func (b *Bridge) updateBotProfile() {
err = b.bot.SetAvatarURL(mxc)
}
}
b.log.Warnln("failed to update the bot's avatar: %v", err)
if err != nil {
b.log.Warnln("failed to update the bot's avatar: ", err)
}
}
// Update the bot's display name.
@@ -35,7 +36,7 @@ func (b *Bridge) updateBotProfile() {
}
if err != nil {
b.log.Warnln("failed to update the bot's display name: %v", err)
b.log.Warnln("failed to update the bot's display name", err)
}
}
}