diff options
author | Wim <wim@42.be> | 2018-02-20 23:36:29 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2018-02-20 23:36:29 +0100 |
commit | e92b6de09fd9d983deea17113b28aaba14863735 (patch) | |
tree | 4993522d1c4a7f13ee088b580e7c4bd5594ed69e /matterbridge.go | |
parent | e622587db43d36d22640d9f90a92d984d6231dd3 (diff) | |
download | matterbridge-msglm-e92b6de09fd9d983deea17113b28aaba14863735.tar.gz matterbridge-msglm-e92b6de09fd9d983deea17113b28aaba14863735.tar.bz2 matterbridge-msglm-e92b6de09fd9d983deea17113b28aaba14863735.zip |
Add more debug
Diffstat (limited to 'matterbridge.go')
-rw-r--r-- | matterbridge.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/matterbridge.go b/matterbridge.go index 0864822b..eb96d4d7 100644 --- a/matterbridge.go +++ b/matterbridge.go @@ -16,11 +16,8 @@ var ( githash string ) -func init() { - log.SetFormatter(&log.TextFormatter{FullTimestamp: true}) -} - func main() { + log.SetFormatter(&log.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") @@ -35,6 +32,7 @@ func main() { return } if *flagDebug || os.Getenv("DEBUG") == "1" { + log.SetFormatter(&log.TextFormatter{FullTimestamp: false}) log.Info("Enabling debug") log.SetLevel(log.DebugLevel) } |