Commit 78ab1709 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

packer/rpc: Better logging in communicator

parent b26ff7a6
......@@ -218,6 +218,7 @@ func serveSingleCopy(name string, l net.Listener, dst io.Writer, src io.Reader)
conn, err := l.Accept()
if err != nil {
log.Printf("'%s' accept error: %s", name, err)
return
}
......@@ -231,6 +232,6 @@ func serveSingleCopy(name string, l net.Listener, dst io.Writer, src io.Reader)
written, err := io.Copy(dst, src)
log.Printf("%d bytes written for '%s'", written, name)
if err != nil {
log.Printf("'%s' copy error: %s", name, err.Error())
log.Printf("'%s' copy error: %s", name, err)
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment