From d1227b5fc9de9f7a04fbf71292dd224aa8806411 Mon Sep 17 00:00:00 2001 From: Wim Date: Wed, 21 Feb 2018 00:20:25 +0100 Subject: Use prefixed-formatter for better logging --- bridge/discord/discord.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bridge/discord') diff --git a/bridge/discord/discord.go b/bridge/discord/discord.go index 70e11e0e..4ca68149 100644 --- a/bridge/discord/discord.go +++ b/bridge/discord/discord.go @@ -4,8 +4,8 @@ import ( "bytes" "github.com/42wim/matterbridge/bridge/config" "github.com/42wim/matterbridge/bridge/helper" - log "github.com/sirupsen/logrus" "github.com/bwmarrin/discordgo" + log "github.com/sirupsen/logrus" "regexp" "strings" "sync" @@ -29,7 +29,7 @@ var flog *log.Entry var protocol = "discord" func init() { - flog = log.WithFields(log.Fields{"module": protocol}) + flog = log.WithFields(log.Fields{"prefix": protocol}) } func New(cfg *config.BridgeConfig) *bdiscord { -- cgit v1.2.3