Skip to content

Commit 0d569f8

Browse files
authored
Merge pull request #5229 from wzshiming/fix/log-cp-file
Fix error log when copy file
2 parents 2061227 + 1410220 commit 0d569f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/process/init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ func (p *Init) checkpoint(ctx context.Context, r *CheckpointConfig) error {
441441
}, actions...); err != nil {
442442
dumpLog := filepath.Join(p.Bundle, "criu-dump.log")
443443
if cerr := copyFile(dumpLog, filepath.Join(work, "dump.log")); cerr != nil {
444-
log.G(ctx).Error(err)
444+
log.G(ctx).WithError(cerr).Error("failed to copy dump.log to criu-dump.log")
445445
}
446446
return fmt.Errorf("%s path= %s", criuError(err), dumpLog)
447447
}

0 commit comments

Comments
 (0)