summaryrefslogtreecommitdiffstats
path: root/bridge/config/config.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-02-27 00:33:21 +0100
committerWim <wim@42.be>2018-02-27 23:22:12 +0100
commit2bac8673829516d8314c459133e85a8c0cc1959c (patch)
treeed4123232727f9c53c685b1687725206f0b02cb6 /bridge/config/config.go
parent5fbd8a3be05cdecdde515ad459b7a5d87b056956 (diff)
downloadmatterbridge-msglm-2bac8673829516d8314c459133e85a8c0cc1959c.tar.gz
matterbridge-msglm-2bac8673829516d8314c459133e85a8c0cc1959c.tar.bz2
matterbridge-msglm-2bac8673829516d8314c459133e85a8c0cc1959c.zip
Refactor using factory
Diffstat (limited to 'bridge/config/config.go')
-rw-r--r--bridge/config/config.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/bridge/config/config.go b/bridge/config/config.go
index 72ac4bb4..2a596cce 100644
--- a/bridge/config/config.go
+++ b/bridge/config/config.go
@@ -2,7 +2,7 @@ package config
import (
"github.com/BurntSushi/toml"
- "log"
+ log "github.com/sirupsen/logrus"
"os"
"reflect"
"strings"
@@ -143,7 +143,7 @@ type SameChannelGateway struct {
type Config struct {
Api map[string]Protocol
- IRC map[string]Protocol
+ Irc map[string]Protocol
Mattermost map[string]Protocol
Matrix map[string]Protocol
Slack map[string]Protocol
@@ -164,6 +164,7 @@ type BridgeConfig struct {
General *Protocol
Account string
Remote chan Message
+ Log *log.Entry
}
func NewConfig(cfgfile string) *Config {