From 251026e374c3a0d1ab606a18573b004333815d84 Mon Sep 17 00:00:00 2001 From: Daniel Nephin Date: Fri, 6 Aug 2021 13:07:13 -0400 Subject: [PATCH] debug: remove unused --- command/debug/debug.go | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/command/debug/debug.go b/command/debug/debug.go index a0ec146f5f..dcb03fca0f 100644 --- a/command/debug/debug.go +++ b/command/debug/debug.go @@ -679,30 +679,17 @@ func (c *cmd) createArchiveTemp(path string) (tempName string, err error) { // defaultTargets specifies the list of all targets that // will be captured by default func (c *cmd) defaultTargets() []string { - return append(c.dynamicTargets(), c.staticTargets()...) -} - -// dynamicTargets returns all the supported targets -// that are retrieved at the interval specified -func (c *cmd) dynamicTargets() []string { - return []string{"metrics", "logs", "pprof"} -} - -// staticTargets returns all the supported targets -// that are retrieved at the start of the command execution -func (c *cmd) staticTargets() []string { - return []string{"host", "agent", "cluster"} + return []string{"metrics", "logs", "pprof", "host", "agent", "cluster"} } func (c *cmd) Synopsis() string { - return synopsis + return "Records a debugging archive for operators" } func (c *cmd) Help() string { return c.help } -const synopsis = "Records a debugging archive for operators" const help = ` Usage: consul debug [options]