Changed a few comments

This commit is contained in:
Diptanu Choudhury
2016-02-05 18:07:06 -08:00
parent abad46c423
commit 84b31eff98
4 changed files with 4 additions and 4 deletions

View File

@@ -125,7 +125,7 @@ func (d *ExecDriver) Start(ctx *ExecContext, task *structs.Task) (DriverHandle,
pluginClient.Kill()
return nil, fmt.Errorf("error starting process via the plugin: %v", err)
}
d.logger.Printf("[INFO] driver.exec: started process via plugin with pid: %v", ps.Pid)
d.logger.Printf("[DEBUG] driver.exec: started process via plugin with pid: %v", ps.Pid)
// Return a driver handle
h := &execHandle{

View File

@@ -122,7 +122,7 @@ func TestExecDriver_KillUserPid_OnPluginReconnectFailure(t *testing.T) {
t.Fatalf("expected error")
}
if handle2 != nil {
defer handle2.Kill()
handle2.Kill()
t.Fatalf("expected handle2 to be nil")
}
// Test if the userpid is still present

View File

@@ -171,7 +171,7 @@ func (d *JavaDriver) Start(ctx *ExecContext, task *structs.Task) (DriverHandle,
pluginClient.Kill()
return nil, fmt.Errorf("error starting process via the plugin: %v", err)
}
d.logger.Printf("[INFO] driver.java: started process with pid: %v", ps.Pid)
d.logger.Printf("[DEBUG] driver.java: started process with pid: %v", ps.Pid)
// Return a driver handle
h := &javaHandle{

View File

@@ -118,7 +118,7 @@ func (d *RawExecDriver) Start(ctx *ExecContext, task *structs.Task) (DriverHandl
pluginClient.Kill()
return nil, fmt.Errorf("error starting process via the plugin: %v", err)
}
d.logger.Printf("[INFO] driver.raw_exec: started process with pid: %v", ps.Pid)
d.logger.Printf("[DEBUG] driver.raw_exec: started process with pid: %v", ps.Pid)
// Return a driver handle
h := &rawExecHandle{