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 /bridge/mattermost/mattermost.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 'bridge/mattermost/mattermost.go')
-rw-r--r-- | bridge/mattermost/mattermost.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bridge/mattermost/mattermost.go b/bridge/mattermost/mattermost.go index bd1292bb..f6206493 100644 --- a/bridge/mattermost/mattermost.go +++ b/bridge/mattermost/mattermost.go @@ -364,6 +364,9 @@ func (b *Bmattermost) apiLogin() error { b.mc = matterclient.New(b.Config.Login, password, b.Config.Team, b.Config.Server) + if b.General.Debug { + b.mc.SetLogLevel("debug") + } b.mc.SkipTLSVerify = b.Config.SkipTLSVerify b.mc.NoTLS = b.Config.NoTLS flog.Infof("Connecting %s (team: %s) on %s", b.Config.Login, b.Config.Team, b.Config.Server) |