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.
1 parent 5086aad commit 539e96cCopy full SHA for 539e96c
cmd/cmd.go
@@ -430,7 +430,7 @@ func initConfig() {
430
}
431
432
// Start the metrics server if configured and not running the "rc" command
433
- if os.Args[1] != "rc" {
+ if len(os.Args) >= 2 && os.Args[1] != "rc" {
434
_, err = rcserver.MetricsStart(ctx, &rc.Opt)
435
if err != nil {
436
fs.Fatalf(nil, "Failed to start metrics server: %v", err)
0 commit comments