5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-09 16:50:30 +00:00

Add extra debug info (discord)

This commit is contained in:
Wim 2019-09-05 22:39:43 +02:00
parent cec086994e
commit f66d5f1e58

View File

@ -25,7 +25,7 @@ func (b *Bdiscord) getNick(user *discordgo.User) string {
// If we didn't find nick, search for it.
member, err := b.c.GuildMember(b.guildID, user.ID)
if err != nil {
b.Log.Warnf("Failed to fetch information for member %#v: %s", user, err)
b.Log.Warnf("Failed to fetch information for member %#v on guild %#v: %s", user, b.guildID, err)
return user.Username
} else if member == nil {
b.Log.Warnf("Got no information for member %#v", user)