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/irc/irc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bridge/irc') diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go index d7b45b7f..958eb6c1 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -6,11 +6,11 @@ import ( "fmt" "github.com/42wim/matterbridge/bridge/config" "github.com/42wim/matterbridge/bridge/helper" - log "github.com/sirupsen/logrus" "github.com/lrstanley/girc" "github.com/paulrosania/go-charset/charset" _ "github.com/paulrosania/go-charset/data" "github.com/saintfish/chardet" + log "github.com/sirupsen/logrus" "io" "io/ioutil" "net" @@ -37,7 +37,7 @@ var flog *log.Entry var protocol = "irc" func init() { - flog = log.WithFields(log.Fields{"module": protocol}) + flog = log.WithFields(log.Fields{"prefix": protocol}) } func New(cfg *config.BridgeConfig) *Birc { -- cgit v1.2.3