Skip to content

Commit

Permalink
fixup post review 1
Browse files Browse the repository at this point in the history
  • Loading branch information
anurag4DSB committed Jan 7, 2025
1 parent beeac49 commit de1933e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/scality-cosi-driver/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ func main() {
klog.InfoS("Signal received", "type", sig)
cancel()

klog.InfoS("Initiating graceful shutdown, repeat signal to force shutdown")
klog.InfoS("Graceful shutdown initiated; repeat signal to force immediate shutdown")

select {
case sig = <-sigs:
klog.ErrorS(nil, "Initiating graceful shutdown, repeat signal to force shutdown", "type", sig)
klog.ErrorS(nil, "Second signal received—forcing shutdown", "type", sig)
os.Exit(1)
case <-time.After(30 * time.Second):
klog.ErrorS(nil, "Force shutdown due to timeout", "timeout", 30*time.Second)
klog.ErrorS(nil, "Forcing shutdown due to timeout", "timeout", 30*time.Second)
os.Exit(1)
}
}()
Expand Down

0 comments on commit de1933e

Please sign in to comment.