From 9d72a262f357ef0ee6409acae7d3c24d8f87caec Mon Sep 17 00:00:00 2001 From: Ashesh Vidyut Date: Wed, 7 Jun 2023 17:47:53 +0530 Subject: [PATCH] changed duration to 5 mins and log level to trace --- command/debug/debug.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/command/debug/debug.go b/command/debug/debug.go index 38a02c26027b..0c3fcca57a83 100644 --- a/command/debug/debug.go +++ b/command/debug/debug.go @@ -35,7 +35,7 @@ const ( // debugDuration is the total duration that debug runs before being // shut down - debugDuration = 2 * time.Minute + debugDuration = 5 * time.Minute // debugDurationGrace is a period of time added to the specified // duration to allow intervals to capture within that time @@ -503,7 +503,7 @@ func (c *cmd) captureHeap(outputDir string) error { } func (c *cmd) captureLogs(ctx context.Context) error { - logCh, err := c.client.Agent().Monitor("DEBUG", ctx.Done(), nil) + logCh, err := c.client.Agent().Monitor("TRACE", ctx.Done(), nil) if err != nil { return err }