summaryrefslogtreecommitdiffstats
path: root/gateway/gateway.go
diff options
context:
space:
mode:
Diffstat (limited to 'gateway/gateway.go')
-rw-r--r--gateway/gateway.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/gateway/gateway.go b/gateway/gateway.go
index 73072fae..442e27fb 100644
--- a/gateway/gateway.go
+++ b/gateway/gateway.go
@@ -74,11 +74,8 @@ const (
apiProtocol = "api"
)
-func init() {
- flog = log.WithFields(log.Fields{"prefix": "gateway"})
-}
-
func New(cfg config.Gateway, r *Router) *Gateway {
+ flog = log.WithFields(log.Fields{"prefix": "gateway"})
gw := &Gateway{Channels: make(map[string]*config.ChannelInfo), Message: r.Message,
Router: r, Bridges: make(map[string]*bridge.Bridge), Config: r.Config}
cache, _ := lru.New(5000)