diff options
author | Wim <wim@42.be> | 2018-02-21 00:20:25 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2018-02-21 00:20:25 +0100 |
commit | d1227b5fc9de9f7a04fbf71292dd224aa8806411 (patch) | |
tree | 58d632c586fc3fc13783950f11265552f0f11dd5 /gateway/router.go | |
parent | 6ea368c383ccc19678623c51d8e4ecbbdb0a64ac (diff) | |
download | matterbridge-msglm-d1227b5fc9de9f7a04fbf71292dd224aa8806411.tar.gz matterbridge-msglm-d1227b5fc9de9f7a04fbf71292dd224aa8806411.tar.bz2 matterbridge-msglm-d1227b5fc9de9f7a04fbf71292dd224aa8806411.zip |
Use prefixed-formatter for better logging
Diffstat (limited to 'gateway/router.go')
-rw-r--r-- | gateway/router.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gateway/router.go b/gateway/router.go index e1944d4a..7c3d8585 100644 --- a/gateway/router.go +++ b/gateway/router.go @@ -5,7 +5,7 @@ import ( "github.com/42wim/matterbridge/bridge" "github.com/42wim/matterbridge/bridge/config" "github.com/42wim/matterbridge/gateway/samechannel" - log "github.com/sirupsen/logrus" + //log "github.com/sirupsen/logrus" // "github.com/davecgh/go-spew/spew" "time" ) @@ -42,13 +42,13 @@ func NewRouter(cfg *config.Config) (*Router, error) { func (r *Router) Start() error { m := make(map[string]*bridge.Bridge) for _, gw := range r.Gateways { - log.Infof("Parsing gateway %s", gw.Name) + flog.Infof("Parsing gateway %s", gw.Name) for _, br := range gw.Bridges { m[br.Account] = br } } for _, br := range m { - log.Infof("Starting bridge: %s ", br.Account) + flog.Infof("Starting bridge: %s ", br.Account) err := br.Connect() if err != nil { return fmt.Errorf("Bridge %s failed to start: %v", br.Account, err) |