remove all the extra debug lines

This commit is contained in:
Megan Marsh 2019-04-29 10:33:41 -07:00
parent 1287fcfa27
commit 2e0f9223c8
1 changed files with 0 additions and 8 deletions

View File

@ -101,13 +101,10 @@ func (c *communicator) Start(ctx context.Context, cmd *packer.RemoteCmd) (err er
go func() { go func() {
conn, err := c.mux.Accept(responseStreamId) conn, err := c.mux.Accept(responseStreamId)
log.Printf("Megan waiting...")
wg.Wait() wg.Wait()
log.Printf("Megan done waiting...")
if err != nil { if err != nil {
log.Printf("[ERR] Error accepting response stream %d: %s", log.Printf("[ERR] Error accepting response stream %d: %s",
responseStreamId, err) responseStreamId, err)
log.Printf("Megan SetExited 1...")
cmd.SetExited(123) cmd.SetExited(123)
return return
} }
@ -118,19 +115,15 @@ func (c *communicator) Start(ctx context.Context, cmd *packer.RemoteCmd) (err er
if err := decoder.Decode(&finished); err != nil { if err := decoder.Decode(&finished); err != nil {
log.Printf("[ERR] Error decoding response stream %d: %s", log.Printf("[ERR] Error decoding response stream %d: %s",
responseStreamId, err) responseStreamId, err)
log.Printf("Megan SetExited 2...")
cmd.SetExited(123) cmd.SetExited(123)
return return
} }
log.Printf("[INFO] RPC client: Communicator ended with: %d", finished.ExitStatus) log.Printf("[INFO] RPC client: Communicator ended with: %d", finished.ExitStatus)
log.Printf("Megan SetExited 3...")
cmd.SetExited(finished.ExitStatus) cmd.SetExited(finished.ExitStatus)
}() }()
log.Printf("Megan, calling communicator using c.client.call")
err = c.client.Call("Communicator.Start", &args, new(interface{})) err = c.client.Call("Communicator.Start", &args, new(interface{}))
log.Printf("Megan, returned from communicator.Start c.client.call")
return return
} }
@ -209,7 +202,6 @@ func (c *communicator) Download(path string, w io.Writer) (err error) {
} }
func (c *CommunicatorServer) Start(args *CommunicatorStartArgs, reply *interface{}) error { func (c *CommunicatorServer) Start(args *CommunicatorStartArgs, reply *interface{}) error {
log.Println("Megan inside communicatorServer")
ctx := context.TODO() ctx := context.TODO()
// Build the RemoteCmd on this side so that it all pipes over // Build the RemoteCmd on this side so that it all pipes over