Procházet zdrojové kódy

log an error if core file is found in output

Brian Gough před 9 roky
rodič
revize
e18538bd38
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4 0
      services/clsi/app/coffee/CompileController.coffee

+ 4 - 0
services/clsi/app/coffee/CompileController.coffee

@@ -39,6 +39,10 @@ module.exports = CompileController =
 						for file in outputFiles
 						for file in outputFiles
 							if file.path?.match(/output\.pdf$/)
 							if file.path?.match(/output\.pdf$/)
 								status = "success"
 								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()
 					timer.done()
 					res.status(code or 200).send {
 					res.status(code or 200).send {