bot: fix logging when updating avatar and display name

This commit is contained in:
Sumner Evans
2022-04-01 15:57:27 -06:00
parent 21fe76d5e4
commit 6bdeb55724

View File

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