From d25e0056df42bf2b196966169b6c3b5b8f0141c7 Mon Sep 17 00:00:00 2001 From: David Siaw Date: Fri, 10 May 2024 16:28:57 +0900 Subject: [PATCH] use sprintf instead --- dockerfiles/run-pack/watch_interactive_session.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dockerfiles/run-pack/watch_interactive_session.go b/dockerfiles/run-pack/watch_interactive_session.go index c9363fc8..b02814e0 100644 --- a/dockerfiles/run-pack/watch_interactive_session.go +++ b/dockerfiles/run-pack/watch_interactive_session.go @@ -1,6 +1,7 @@ package main import ( + "fmt" "log" "os" "time" @@ -58,11 +59,11 @@ func watchInteractiveSession() { } case <-startTimeout: if !sessionStarted { - log.Printf("Interactive session has not started for %d seconds", StartupTimeoutSeconds) + log.Println(fmt.Sprintf("Interactive session has not started for %d seconds", StartupTimeoutSeconds)) os.Exit(2) } case <-runTimeout: - log.Printf("Interactive session has run for over %d hours", RunTimeoutHours) + log.Println(fmt.Sprintf("Interactive session has run for over %d hours", RunTimeoutHours)) os.Exit(2) } }