X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Ftoss.go;h=84890343a86b67777d672a4d7a6571b2be1a0577;hb=887ea7ab9d0d957cd0b4566c28985c7d84a5832f;hp=4037831b59618319fdee6083127d91b83af21622;hpb=35a73648e17752fb8ac56868c6f3b45c958cc130;p=nncp.git diff --git a/src/toss.go b/src/toss.go index 4037831..8489034 100644 --- a/src/toss.go +++ b/src/toss.go @@ -157,9 +157,12 @@ func jobProcess( } else { cmd.Stdin = pipeR } - output, err := cmd.Output() + output, err := cmd.CombinedOutput() if err != nil { - ctx.LogE("rx-hande", les, err, func(les LEs) string { + les = append(les, LE{"Output", strings.Split( + strings.Trim(string(output), "\n"), "\n"), + }) + ctx.LogE("rx-handle", les, err, func(les LEs) string { return fmt.Sprintf( "Tossing exec %s/%s (%s): %s: handling", sender.Name, pktName,