Skip to content

Commit

Permalink
Merge pull request #5231 from wzshiming/cherry-pick/upstream/release/…
Browse files Browse the repository at this point in the history
…1.4/#5229

[release/1.4] Cherry pick of #5229: Fix error log when copy file
  • Loading branch information
fuweid committed Mar 27, 2021
2 parents b053780 + 8c5422e commit 1322c70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/process/init.go
Expand Up @@ -441,7 +441,7 @@ func (p *Init) checkpoint(ctx context.Context, r *CheckpointConfig) error {
}, actions...); err != nil {
dumpLog := filepath.Join(p.Bundle, "criu-dump.log")
if cerr := copyFile(dumpLog, filepath.Join(work, "dump.log")); cerr != nil {
log.G(ctx).Error(err)
log.G(ctx).WithError(cerr).Error("failed to copy dump.log to criu-dump.log")
}
return fmt.Errorf("%s path= %s", criuError(err), dumpLog)
}
Expand Down

0 comments on commit 1322c70

Please sign in to comment.