mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Suppress log message when there is no error
PiperOrigin-RevId: 374981100
This commit is contained in:
committed by
gVisor bot
parent
af229f46a1
commit
ec542dbedf
@@ -131,8 +131,9 @@ func New(conf *config.Config, args *Args) (*Sandbox, error) {
|
||||
// The Cleanup object cleans up partially created sandboxes when an error
|
||||
// occurs. Any errors occurring during cleanup itself are ignored.
|
||||
c := cleanup.Make(func() {
|
||||
err := s.destroy()
|
||||
log.Warningf("error destroying sandbox: %v", err)
|
||||
if err := s.destroy(); err != nil {
|
||||
log.Warningf("error destroying sandbox: %v", err)
|
||||
}
|
||||
})
|
||||
defer c.Clean()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user