pulsar-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] aahmed-se commented on a change in pull request #2139: Use container name in logs
Date Thu, 12 Jul 2018 06:07:20 GMT
aahmed-se commented on a change in pull request #2139: Use container name in logs
URL: https://github.com/apache/incubator-pulsar/pull/2139#discussion_r201918420
 
 

 ##########
 File path: tests/integration-tests-utils/src/main/java/org/apache/pulsar/tests/DockerUtils.java
 ##########
 @@ -61,11 +62,13 @@ private static File getTargetDirectory(String containerId) {
         return directory;
     }
 
-    public static void dumpContainerLogToTarget(DockerClient docker, String containerId)
{
-        File output = new File(getTargetDirectory(containerId), "docker.log");
+    public static void dumpContainerLogToTarget(DockerClient dockerClient, String containerId)
{
+        InspectContainerResponse inspectContainerResponse = dockerClient.inspectContainerCmd(containerId).exec();
+        final String containerName = inspectContainerResponse.getName().replace("/","");
 
 Review comment:
   Updated description with motivation.
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message