Add in flags to run strace and capture logs

This commit is contained in:
James Allen
2016-03-29 16:45:06 +01:00
parent 9f104a4f57
commit 6af22cf184
2 changed files with 76 additions and 28 deletions

View File

@@ -26,6 +26,9 @@ module.exports = LatexRunner =
command = LatexRunner._lualatexCommand mainFile
else
return callback new Error("unknown compiler: #{compiler}")
if Settings.clsi?.strace
command = ["strace", "-o", "strace-#{Date.now()}", "-ff"].concat(command)
CommandRunner.run project_id, command, directory, image, timeout, (error, output) ->
return callback(error) if error?