Skip to content

Commit 50be335

Browse files
Add more logs
1 parent 761d230 commit 50be335

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/docker-client.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,12 @@ export class DockerodeClient implements DockerClient {
249249
} else {
250250
try {
251251
const unixSocketPath = "/var/run/docker.sock";
252+
log.debug(`Socket path not provided, looking for ${unixSocketPath}`);
252253
await fs.promises.access(unixSocketPath);
254+
log.debug(`Socket found`);
253255
return unixSocketPath;
254256
} catch {
257+
log.debug(`Socket not found`);
255258
return undefined;
256259
}
257260
}

src/reaper.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ export class Reaper {
3838
const socketPath = await dockerClient.getSocketPath();
3939

4040
if (socketPath) {
41+
log.debug(`Mounting socket into Reaper: ${socketPath}`);
4142
container.withBindMount(socketPath, "/var/run/docker.sock");
4243
} else if (process.env.DOCKER_HOST) {
44+
log.debug(`Setting DOCKER_HOST into Reaper: ${socketPath}`);
4345
container.withEnv("DOCKER_HOST", process.env.DOCKER_HOST);
4446
}
4547

0 commit comments

Comments
 (0)