diff options
author | Wim <wim@42.be> | 2018-02-21 01:11:41 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2018-02-21 01:11:41 +0100 |
commit | 67d2398fa8358fd3bad7ede01620294abd2b4eb7 (patch) | |
tree | 55f66a72c6d36833c83e5645d1e764c70f24d9a9 /matterbridge.go | |
parent | 5f3b6ec007c8f3ff9e6d1f0d89f45819fbefd1cf (diff) | |
download | matterbridge-msglm-67d2398fa8358fd3bad7ede01620294abd2b4eb7.tar.gz matterbridge-msglm-67d2398fa8358fd3bad7ede01620294abd2b4eb7.tar.bz2 matterbridge-msglm-67d2398fa8358fd3bad7ede01620294abd2b4eb7.zip |
Make matterclient work with prefixed log
Diffstat (limited to 'matterbridge.go')
-rw-r--r-- | matterbridge.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/matterbridge.go b/matterbridge.go index 5e1e3f46..aa92bf08 100644 --- a/matterbridge.go +++ b/matterbridge.go @@ -18,7 +18,7 @@ var ( ) func main() { - log.SetFormatter(&prefixed.TextFormatter{PrefixPadding: 10, DisableColors: true, FullTimestamp: true}) + log.SetFormatter(&prefixed.TextFormatter{PrefixPadding: 13, DisableColors: true, FullTimestamp: true}) flog := log.WithFields(log.Fields{"prefix": "main"}) flagConfig := flag.String("conf", "matterbridge.toml", "config file") flagDebug := flag.Bool("debug", false, "enable debug") @@ -34,7 +34,7 @@ func main() { return } if *flagDebug || os.Getenv("DEBUG") == "1" { - log.SetFormatter(&prefixed.TextFormatter{PrefixPadding: 10, DisableColors: true, FullTimestamp: false}) + log.SetFormatter(&prefixed.TextFormatter{PrefixPadding: 13, DisableColors: true, FullTimestamp: false}) flog.Info("Enabling debug") log.SetLevel(log.DebugLevel) } |