have failed compiles warn rather than be an error

This commit is contained in:
Henry Oswald
2018-11-23 14:52:13 +00:00
parent f1ab938bab
commit 49f3b7d54f
2 changed files with 3 additions and 3 deletions

View File

@@ -33,7 +33,7 @@ module.exports = CompileController =
else
status = "error"
code = 500
logger.error err: error, project_id: request.project_id, "error running compile"
logger.warn err: error, project_id: request.project_id, "error running compile"
else
status = "failure"
@@ -42,7 +42,7 @@ module.exports = CompileController =
status = "success"
if status == "failure"
logger.err project_id: request.project_id, outputFiles:outputFiles, "project failed to compile successfully, no output.pdf generated"
logger.warn project_id: request.project_id, outputFiles:outputFiles, "project failed to compile successfully, no output.pdf generated"
# log an error if any core files are found
for file in outputFiles