Skip to content

Commit

Permalink
Merge pull request containerd#11148 from zouyee/cmd
Browse files Browse the repository at this point in the history
log: avoid using unsupported field by logrus
  • Loading branch information
mxpv authored Jan 16, 2025
2 parents 97119cc + 04f9e30 commit 2ab62ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/runtime/v2/binary.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func (b *binary) Delete(ctx context.Context) (*runtime.Exit, error) {
cmd.Stdout = out
cmd.Stderr = errb
if err := cmd.Run(); err != nil {
log.G(ctx).WithField("cmd", cmd).WithError(err).Error("failed to delete")
log.G(ctx).WithField("cmd", cmd.String()).WithError(err).Error("failed to delete")
return nil, fmt.Errorf("%s: %w", errb.String(), err)
}
s := errb.String()
Expand Down

0 comments on commit 2ab62ac

Please sign in to comment.