From 67d2398fa8358fd3bad7ede01620294abd2b4eb7 Mon Sep 17 00:00:00 2001 From: Wim Date: Wed, 21 Feb 2018 01:11:41 +0100 Subject: Make matterclient work with prefixed log --- bridge/mattermost/mattermost.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bridge/mattermost') 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) -- cgit v1.2.3