Skip to content

Commit 365e8ff

Browse files
committed
installSignalHandlers: fix signal names in logs
Signed-off-by: Stanislas Lange <stanislas.lange@pm.me>
1 parent 40fa853 commit 365e8ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,10 @@ func installSignalHandlers(ctx context.Context, m *firecracker.Machine) {
161161
for {
162162
switch s := <-c; {
163163
case s == syscall.SIGTERM || s == os.Interrupt:
164-
log.Printf("Caught SIGINT, requesting clean shutdown")
164+
log.Printf("Caught signal: %s, requesting clean shutdown", s.String())
165165
m.Shutdown(ctx)
166166
case s == syscall.SIGQUIT:
167-
log.Printf("Caught SIGTERM, forcing shutdown")
167+
log.Printf("Caught signal: %s, forcing shutdown", s.String())
168168
m.StopVMM()
169169
}
170170
}

0 commit comments

Comments
 (0)