From 036c7727dbca99b7e5730b0acdb4643322c0bafa Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Mon, 9 Mar 2020 08:18:03 +0100 Subject: [PATCH] logs: more exec logging --- lib/util/exec/docker/index.ts | 1 + lib/util/exec/index.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/lib/util/exec/docker/index.ts b/lib/util/exec/docker/index.ts index b2b6b09570..840e931096 100644 --- a/lib/util/exec/docker/index.ts +++ b/lib/util/exec/docker/index.ts @@ -17,6 +17,7 @@ async function prefetchDockerImage(taggedImage: string): Promise<void> { logger.debug(`Fetching Docker image: ${taggedImage}`); prefetchedImages.add(taggedImage); await rawExec(`docker pull ${taggedImage}`, { encoding: 'utf-8' }); + logger.debug(`Finished fetching Docker image`); } } diff --git a/lib/util/exec/index.ts b/lib/util/exec/index.ts index 50eca3df82..66dcdbb00d 100644 --- a/lib/util/exec/index.ts +++ b/lib/util/exec/index.ts @@ -120,6 +120,8 @@ export async function exec( let res: ExecResult | null = null; for (const rawExecCommand of commands) { + logger.debug({ command: rawExecCommand }, 'Executing command'); + logger.trace({ commandOptions: rawExecOptions }, 'Command options'); const startTime = hrtime(); res = await rawExec(rawExecCommand, rawExecOptions); const duration = hrtime(startTime); -- GitLab