summaryrefslogtreecommitdiffstats
path: root/bridge/discord/helpers.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2019-02-26 17:21:23 +0100
committerGitHub <noreply@github.com>2019-02-26 17:21:23 +0100
commitb09a73040f28e65ac7bb5293b4e5c56f7d8e265f (patch)
treed7ab4e926a3a07388ec2b54e319729d24dd98e2e /bridge/discord/helpers.go
parent740b5f260243bd95ed83c6cfc805543e5d87b5e8 (diff)
downloadmatterbridge-msglm-b09a73040f28e65ac7bb5293b4e5c56f7d8e265f.tar.gz
matterbridge-msglm-b09a73040f28e65ac7bb5293b4e5c56f7d8e265f.tar.bz2
matterbridge-msglm-b09a73040f28e65ac7bb5293b4e5c56f7d8e265f.zip
Print errors as string instead of %#v (#738)
Diffstat (limited to 'bridge/discord/helpers.go')
-rw-r--r--bridge/discord/helpers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/discord/helpers.go b/bridge/discord/helpers.go
index e693498c..7b060817 100644
--- a/bridge/discord/helpers.go
+++ b/bridge/discord/helpers.go
@@ -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: %#v", user, err)
+ b.Log.Warnf("Failed to fetch information for member %#v: %s", user, err)
return user.Username
} else if member == nil {
b.Log.Warnf("Got no information for member %#v", user)