changed duration to 5 mins and log level to trace

pull/17596/head
Ashesh Vidyut 2023-06-07 17:47:53 +05:30
parent 091925bcb7
commit 9d72a262f3
1 changed files with 2 additions and 2 deletions

View File

@ -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
}