Skip to content

Commit

Permalink
use sprintf instead
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsiaw committed May 10, 2024
1 parent 84e81a1 commit d25e005
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dockerfiles/run-pack/watch_interactive_session.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
"fmt"
"log"
"os"
"time"
Expand Down Expand Up @@ -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)
}
}
Expand Down

0 comments on commit d25e005

Please sign in to comment.