Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit 33835e02bc156b68d2c2647c1a16173405920dbc Author: Wim <wim@42.be> Date: Thu Mar 23 23:28:55 2017 +0000 Add gops agent diff --git a/matterbridge.go b/matterbridge.go index 5118477..c9716d4 100644 --- a/matterbridge.go +++ b/matterbridge.go @@ -76 +77 @@ import (   "github.com/42wim/matterbridge/gateway"   "github.com/42wim/matterbridge/gateway/samechannel"   log "github.com/Sirupsen/logrus" + "github.com/google/gops/agent"  )    var ( @@ -227 +2312 @@ func main() {   flagConfig := flag.String("conf", "matterbridge.toml", "config file")   flagDebug := flag.Bool("debug", false, "enable debug")   flagVersion := flag.Bool("version", false, "show version") + flagGops := flag.Bool("gops", false, "enable gops agent")   flag.Parse() + if *flagGops { + agent.Listen(&agent.Options{}) + defer agent.Close() + }   if *flagVersion {   fmt.Printf("version: %s %s\n", version, githash)   return