diff options
Diffstat (limited to 'bridge')
-rw-r--r-- | bridge/discord/discord.go | 6 | ||||
-rw-r--r-- | bridge/discord/helpers.go | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/bridge/discord/discord.go b/bridge/discord/discord.go index bc33796c..49dfe4bc 100644 --- a/bridge/discord/discord.go +++ b/bridge/discord/discord.go @@ -246,7 +246,7 @@ func (b *Bdiscord) Send(msg config.Message) (string, error) { b.Log.Debugf("Setting webhook channel to \"%s\"", msg.Channel) _, err := b.c.WebhookEdit(wID, "", "", channelID) if err != nil { - b.Log.Errorf("Could not set webhook channel: %v", err) + b.Log.Errorf("Could not set webhook channel: %s", err) return "", err } } @@ -278,7 +278,7 @@ func (b *Bdiscord) Send(msg config.Message) (string, error) { for _, rmsg := range helper.HandleExtra(&msg, b.General) { rmsg.Text = helper.ClipMessage(rmsg.Text, MessageLength) if _, err := b.c.ChannelMessageSend(channelID, rmsg.Username+rmsg.Text); err != nil { - b.Log.Errorf("Could not send message %#v: %v", rmsg, err) + b.Log.Errorf("Could not send message %#v: %s", rmsg, err) } } // check if we have files to upload (from slack, telegram or mattermost) @@ -360,7 +360,7 @@ func (b *Bdiscord) handleUploadFile(msg *config.Message, channelID string) (stri } _, err = b.c.ChannelMessageSendComplex(channelID, &m) if err != nil { - return "", fmt.Errorf("file upload failed: %#v", err) + return "", fmt.Errorf("file upload failed: %s", err) } } return "", nil 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) |