summaryrefslogtreecommitdiffstats
path: root/bridge
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-01-26 21:54:09 +0100
committerWim <wim@42.be>2018-01-26 21:54:09 +0100
commit6a047f87229c277b72a1a54b18dc39abe1dbdca4 (patch)
tree3ea52d700ee29e2e51933dec565c641f5bdd0ad2 /bridge
parent6523494e83a97ccddfa5993d979bbac470fb09c5 (diff)
downloadmatterbridge-msglm-6a047f87229c277b72a1a54b18dc39abe1dbdca4.tar.gz
matterbridge-msglm-6a047f87229c277b72a1a54b18dc39abe1dbdca4.tar.bz2
matterbridge-msglm-6a047f87229c277b72a1a54b18dc39abe1dbdca4.zip
Print only debug messages when specified (xmpp). Closes #345
Diffstat (limited to 'bridge')
-rw-r--r--bridge/config/config.go1
-rw-r--r--bridge/xmpp/xmpp.go2
2 files changed, 2 insertions, 1 deletions
diff --git a/bridge/config/config.go b/bridge/config/config.go
index 13b7a8d0..af3bf036 100644
--- a/bridge/config/config.go
+++ b/bridge/config/config.go
@@ -53,6 +53,7 @@ type Protocol struct {
BindAddress string // mattermost, slack // DEPRECATED
Buffer int // api
Charset string // irc
+ Debug bool // general
EditSuffix string // mattermost, slack, discord, telegram, gitter
EditDisable bool // mattermost, slack, discord, telegram, gitter
IconURL string // mattermost, slack
diff --git a/bridge/xmpp/xmpp.go b/bridge/xmpp/xmpp.go
index 0ad7699c..63a1048e 100644
--- a/bridge/xmpp/xmpp.go
+++ b/bridge/xmpp/xmpp.go
@@ -110,7 +110,7 @@ func (b *Bxmpp) createXMPP() (*xmpp.Client, error) {
TLSConfig: tc,
//StartTLS: false,
- Debug: true,
+ Debug: b.General.Debug,
Session: true,
Status: "",
StatusMessage: "",