diff options
author | Wim <wim@42.be> | 2018-02-20 23:41:09 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2018-02-20 23:41:09 +0100 |
commit | 6ea368c383ccc19678623c51d8e4ecbbdb0a64ac (patch) | |
tree | 0ccce9d453a743c59abf58eb510ccab99128e381 /matterbridge.go | |
parent | e92b6de09fd9d983deea17113b28aaba14863735 (diff) | |
download | matterbridge-msglm-6ea368c383ccc19678623c51d8e4ecbbdb0a64ac.tar.gz matterbridge-msglm-6ea368c383ccc19678623c51d8e4ecbbdb0a64ac.tar.bz2 matterbridge-msglm-6ea368c383ccc19678623c51d8e4ecbbdb0a64ac.zip |
Move Sirupsen => sirupsen
Diffstat (limited to 'matterbridge.go')
-rw-r--r-- | matterbridge.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/matterbridge.go b/matterbridge.go index eb96d4d7..0691a1f0 100644 --- a/matterbridge.go +++ b/matterbridge.go @@ -5,8 +5,9 @@ import ( "fmt" "github.com/42wim/matterbridge/bridge/config" "github.com/42wim/matterbridge/gateway" - log "github.com/Sirupsen/logrus" "github.com/google/gops/agent" + log "github.com/sirupsen/logrus" + prefixed "github.com/x-cray/logrus-prefixed-formatter" "os" "strings" ) @@ -17,7 +18,7 @@ var ( ) func main() { - log.SetFormatter(&log.TextFormatter{FullTimestamp: true}) + log.SetFormatter(&prefixed.TextFormatter{FullTimestamp: true}) flagConfig := flag.String("conf", "matterbridge.toml", "config file") flagDebug := flag.Bool("debug", false, "enable debug") flagVersion := flag.Bool("version", false, "show version") @@ -32,7 +33,7 @@ func main() { return } if *flagDebug || os.Getenv("DEBUG") == "1" { - log.SetFormatter(&log.TextFormatter{FullTimestamp: false}) + log.SetFormatter(&prefixed.TextFormatter{FullTimestamp: false}) log.Info("Enabling debug") log.SetLevel(log.DebugLevel) } |