@@ -388,11 +388,8 @@ func (c *linuxContainer) Checkpoint(criuOpts *CriuOpts) error {
388
388
389
389
err = c .criuSwrk (nil , & req , criuOpts )
390
390
if err != nil {
391
- log .Errorf (filepath .Join (criuOpts .WorkDirectory , "dump.log" ))
392
391
return err
393
392
}
394
-
395
- log .Info ("Checkpointed" )
396
393
return nil
397
394
}
398
395
@@ -446,7 +443,6 @@ func (c *linuxContainer) Restore(process *Process, criuOpts *CriuOpts) error {
446
443
447
444
err = syscall .Mount (c .config .Rootfs , root , "" , syscall .MS_BIND | syscall .MS_REC , "" )
448
445
if err != nil {
449
- log .Error (err )
450
446
return err
451
447
}
452
448
defer syscall .Unmount (root , syscall .MNT_DETACH )
@@ -519,11 +515,8 @@ func (c *linuxContainer) Restore(process *Process, criuOpts *CriuOpts) error {
519
515
520
516
err = c .criuSwrk (process , & req , criuOpts )
521
517
if err != nil {
522
- log .Errorf (filepath .Join (criuOpts .WorkDirectory , "restore.log" ))
523
518
return err
524
519
}
525
-
526
- log .Info ("Restored" )
527
520
return nil
528
521
}
529
522
@@ -533,9 +526,6 @@ func (c *linuxContainer) criuSwrk(process *Process, req *criurpc.CriuReq, opts *
533
526
return err
534
527
}
535
528
536
- stringOpts , _ := json .Marshal (* req .Opts )
537
- log .Debugf ("stringOpts: %s" , stringOpts )
538
-
539
529
criuClient := os .NewFile (uintptr (fds [0 ]), "criu-transport-client" )
540
530
criuServer := os .NewFile (uintptr (fds [1 ]), "criu-transport-server" )
541
531
defer criuClient .Close ()
@@ -557,11 +547,10 @@ func (c *linuxContainer) criuSwrk(process *Process, req *criurpc.CriuReq, opts *
557
547
558
548
defer func () {
559
549
criuClient .Close ()
560
- st , err := cmd .Process .Wait ()
550
+ _ , err := cmd .Process .Wait ()
561
551
if err != nil {
562
552
return
563
553
}
564
- log .Warn (st .String ())
565
554
}()
566
555
567
556
var extFds []string
@@ -599,8 +588,6 @@ func (c *linuxContainer) criuSwrk(process *Process, req *criurpc.CriuReq, opts *
599
588
if err != nil {
600
589
return err
601
590
}
602
-
603
- log .Debug (resp .String ())
604
591
if ! resp .GetSuccess () {
605
592
return fmt .Errorf ("criu failed: type %s errno %d" , req .GetType ().String (), resp .GetCrErrno ())
606
593
}
0 commit comments