From 2bac8673829516d8314c459133e85a8c0cc1959c Mon Sep 17 00:00:00 2001 From: Wim Date: Tue, 27 Feb 2018 00:33:21 +0100 Subject: Refactor using factory --- bridge/config/config.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bridge/config') 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 { -- cgit v1.2.3