packer/plugin: clean up log output by only using the base

This commit is contained in:
Mitchell Hashimoto 2014-09-03 21:11:43 -07:00
parent c0f9dbde41
commit e9c2628a77
1 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@ import (
"net"
"os"
"os/exec"
"path/filepath"
"strings"
"sync"
"time"
@ -355,7 +356,7 @@ func (c *Client) logStderr(r io.Reader) {
c.config.Stderr.Write([]byte(line))
line = strings.TrimRightFunc(line, unicode.IsSpace)
log.Printf("%s: %s", c.config.Cmd.Path, line)
log.Printf("%s: %s", filepath.Base(c.config.Cmd.Path), line)
}
if err == io.EOF {