From 43e765f4f9760a177f2a2090fad1137eb20df2a8 Mon Sep 17 00:00:00 2001 From: Wim Date: Thu, 8 Dec 2016 00:14:17 +0100 Subject: [PATCH] Exit when a bridge fails to start --- matterbridge.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matterbridge.go b/matterbridge.go index 5778c184..505944a4 100644 --- a/matterbridge.go +++ b/matterbridge.go @@ -39,7 +39,7 @@ func main() { go func(gw config.SameChannelGateway) { err := samechannelgateway.New(cfg, &gw) if err != nil { - log.Debugf("starting gateway failed %#v", err) + log.Fatalf("starting gateway failed %#v", err) } }(gw) } @@ -52,7 +52,7 @@ func main() { g := gateway.New(cfg, &gw) err := g.Start() if err != nil { - log.Debugf("starting gateway failed %#v", err) + log.Fatalf("starting gateway failed %#v", err) } } select {}