diff options
| author | Paul Buetow <pbuetow@mimecast.com> | 2020-03-06 18:21:02 +0000 |
|---|---|---|
| committer | Paul Buetow <pbuetow@mimecast.com> | 2020-03-06 18:21:02 +0000 |
| commit | a4f8e0926a1a6888cbab1cfd94229cf1cc5cba7d (patch) | |
| tree | fcad0dba81106afdfa615f6213d99d5954c90fea /cmd/dserver/main.go | |
| parent | 6622def60bb96652b19e5f63185b1b9cc8b01a48 (diff) | |
simplify and get rid of pperfv2.1.1
Diffstat (limited to 'cmd/dserver/main.go')
| -rw-r--r-- | cmd/dserver/main.go | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/cmd/dserver/main.go b/cmd/dserver/main.go index 03834f1..e265023 100644 --- a/cmd/dserver/main.go +++ b/cmd/dserver/main.go @@ -9,7 +9,6 @@ import ( "github.com/mimecast/dtail/internal/color" "github.com/mimecast/dtail/internal/config" "github.com/mimecast/dtail/internal/io/logger" - "github.com/mimecast/dtail/internal/pprof" "github.com/mimecast/dtail/internal/server" "github.com/mimecast/dtail/internal/user" "github.com/mimecast/dtail/internal/version" @@ -21,7 +20,6 @@ func main() { var debugEnable bool var displayVersion bool var noColor bool - var pprofEnable bool var shutdownAfter int var sshPort int @@ -30,7 +28,6 @@ func main() { flag.BoolVar(&debugEnable, "debug", false, "Activate debug messages") flag.BoolVar(&displayVersion, "version", false, "Display version") flag.BoolVar(&noColor, "noColor", false, "Disable ANSII terminal colors") - flag.BoolVar(&pprofEnable, "pprofEnable", false, "Enable pprof server") flag.IntVar(&shutdownAfter, "shutdownAfter", 0, "Automatically shutdown after so many seconds") flag.IntVar(&sshPort, "port", 2222, "SSH server port") flag.StringVar(&cfgFile, "cfg", "", "Config file path") @@ -64,10 +61,6 @@ func main() { }() } - if pprofEnable || config.Common.PProfEnable { - pprof.Start() - } - serv := server.New() status := serv.Start(ctx) logger.Flush() |
