update trace format

This commit is contained in:
Brad Rydzewski
2016-05-11 01:43:44 -07:00
parent 6513d0c91a
commit b40cd1459e
3 changed files with 3 additions and 3 deletions

View File

@@ -198,5 +198,5 @@ func commandDaemon(daemon Daemon) *exec.Cmd {
// trace writes each command to stdout with the command wrapped in an xml
// tag so that it can be extracted and displayed in the logs.
func trace(cmd *exec.Cmd) {
fmt.Fprintf(os.Stdout, "<command>%s</command>", strings.Join(cmd.Args, " "))
fmt.Fprintf(os.Stdout, "+ %s\n", strings.Join(cmd.Args, " "))
}