Browse code

Include container ID in glog message

Rodolfo Carvalho authored on 2016/03/18 03:47:50
Showing 1 changed files
... ...
@@ -173,8 +173,8 @@ func dockerRun(client DockerClient, createOpts docker.CreateContainerOptions, lo
173 173
 	}
174 174
 
175 175
 	// Stream container logs.
176
-	glog.V(4).Infof("Streaming logs of container %q with options %+v ...", containerName, logsOpts)
177 176
 	logsOpts.Container = c.ID
177
+	glog.V(4).Infof("Streaming logs of container %q with options %+v ...", containerName, logsOpts)
178 178
 	if err := client.Logs(logsOpts); err != nil {
179 179
 		return fmt.Errorf("streaming logs of %q: %v", containerName, err)
180 180
 	}