From d1fe5aeae057563ff25eca8f9ea54a084e5800fb Mon Sep 17 00:00:00 2001 From: Etienne Perot Date: Thu, 13 Feb 2025 22:48:54 -0800 Subject: [PATCH] Fix error formatting log for post-restore hook errors. PiperOrigin-RevId: 726780521 --- runsc/boot/restore.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runsc/boot/restore.go b/runsc/boot/restore.go index 03c014787..f1e1fa0de 100644 --- a/runsc/boot/restore.go +++ b/runsc/boot/restore.go @@ -326,7 +326,7 @@ func (r *restorer) restore(l *Loader) error { go func() { if err := postRestoreImpl(l); err != nil { - log.Warningf("Killing the sandbox after post restore work failed: %w", err) + log.Warningf("Killing the sandbox after post restore work failed: %v", err) l.k.Kill(linux.WaitStatusTerminationSignal(linux.SIGKILL)) return }