We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c88169a + a623262 commit aee4768Copy full SHA for aee4768
1 file changed
main.go
@@ -3,6 +3,7 @@ package main
3
import (
4
"net/http"
5
_ "net/http/pprof" // #nosec G108 - pprof is controlled via enable_pprof flag
6
+ "os"
7
"runtime"
8
"strings"
9
"sync"
@@ -265,6 +266,7 @@ func main() {
265
266
viper.BindEnv("enable_pprof")
267
viper.SetDefault("enable_pprof", false)
268
269
+ cmd.ParseFlags(os.Args[1:])
270
viper.BindPFlags(flags)
271
272
logLevel := viper.GetString("log_level")
0 commit comments