From e18538bd3879d1918595c6959dfc3c2f2e905ab3 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Wed, 3 Jan 2018 15:41:31 +0000 Subject: [PATCH] log an error if core file is found in output --- services/clsi/app/coffee/CompileController.coffee | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/clsi/app/coffee/CompileController.coffee b/services/clsi/app/coffee/CompileController.coffee index 99973fdd10..1d90405614 100644 --- a/services/clsi/app/coffee/CompileController.coffee +++ b/services/clsi/app/coffee/CompileController.coffee @@ -39,6 +39,10 @@ module.exports = CompileController = for file in outputFiles if file.path?.match(/output\.pdf$/) status = "success" + # log an error if any core files are found + for file in outputFiles + if file.path is "core" + logger.error project_id:request.project_id, req:req, outputFiles:outputFiles, "core file found in output" timer.done() res.status(code or 200).send {