fix logging

This commit is contained in:
Jesse Duffield 2021-12-30 11:35:15 +11:00
parent 95f4ceea34
commit 9d4ff6b465
2 changed files with 4 additions and 0 deletions

View file

@ -116,6 +116,8 @@ func (c *OSCommand) WithSpan(span string) *OSCommand {
newOSCommand := &OSCommand{}
*newOSCommand = *c
newOSCommand.CmdLogSpan = span
newOSCommand.Cmd.logCmdObj = newOSCommand.LogCmdObj
newOSCommand.Cmd.runner = &Runner{log: c.Log, logCmdObj: newOSCommand.LogCmdObj}
return newOSCommand
}