From b11034dd17bafdc3bc541a8da9a757115d0c6051 Mon Sep 17 00:00:00 2001 From: Paulo Truta Date: Mon, 4 Nov 2024 13:36:52 +0100 Subject: [PATCH] Shell timeout log only every 10 seconds --- internal/tasks/tasks.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/tasks/tasks.go b/internal/tasks/tasks.go index f68227a..6474821 100644 --- a/internal/tasks/tasks.go +++ b/internal/tasks/tasks.go @@ -1077,7 +1077,9 @@ func taskStartShell(args taskStartShellArgs) string { utils.WriteOption("SHELL_STATUS", "not_running") break } - fmt.Println("Active Shell Timeout is " + fmt.Sprint(timeout) + " seconds") + if timeout%10 == 0 { + fmt.Println("Active Shell Timeout is " + fmt.Sprint(timeout) + " seconds") + } time.Sleep(1 * time.Second) } }()