Skip to content
Snippets Groups Projects
Commit 036c7727 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

logs: more exec logging

parent a8e1979e
No related merge requests found
......@@ -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`);
}
}
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment