commit 72d6e3356a66b0901012be05cb3e0beaaa2828bd
Author: Wim <wim@42.be>
Date: Sat Oct 28 14:50:35 2017 +0000
diff --git a/matterbridge.go b/matterbridge.go
index aa1cebd..e62b6be 100644
--- a/matterbridge.go
+++ b/matterbridge.go
@@ -76 +77 @@ import (
"github.com/42wim/matterbridge/gateway"
log "github.com/Sirupsen/logrus"
"github.com/google/gops/agent"
+ "os"
"strings"
)
@@ -337 +347 @@ func main() {
fmt.Printf("version: %s %s\n", version, githash)
return
}
- if *flagDebug {
+ if *flagDebug || os.Getenv("DEBUG") == "1" {
log.Info("Enabling debug")
log.SetLevel(log.DebugLevel)
}