From 888f85a680a330cfc6be98bab3e8aed5d9e9dde2 Mon Sep 17 00:00:00 2001 From: Travis Payne Date: Tue, 27 Apr 2021 09:15:06 +0100 Subject: [PATCH] feat: adding additional info into err logs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✅ Closes: #295 Signed-off-by: Travis Payne --- .../test/typescript/benchmark/artillery-api-benchmark.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cactus-cmd-api-server/src/test/typescript/benchmark/artillery-api-benchmark.test.ts b/packages/cactus-cmd-api-server/src/test/typescript/benchmark/artillery-api-benchmark.test.ts index 667ae75671..4706da99f5 100644 --- a/packages/cactus-cmd-api-server/src/test/typescript/benchmark/artillery-api-benchmark.test.ts +++ b/packages/cactus-cmd-api-server/src/test/typescript/benchmark/artillery-api-benchmark.test.ts @@ -135,7 +135,7 @@ test("Start API server, and run Artillery benchmark test.", async (t: Test) => { try { unlinkSync("./report.json"); } catch (err) { - log.error(err); + log.error(`Could not remove report.json from filesystem.`, err); } } }); @@ -145,7 +145,7 @@ async function fireArtilleryCommand(t: Test) { const artilleryCommand = `artillery run ${artilleryScriptLocation} --output report.json`; await shell_exec(artilleryCommand); } catch (err) { - log.error(err); + log.error(`Failed to run artilerry execution.`, err); t.fail(`Test failed. Err: ${err}`); } }