فهرست منبع

don't error on a bad synctex call

Henry Oswald 8 سال پیش
والد
کامیت
905a761544
2فایلهای تغییر یافته به همراه2 افزوده شده و 6 حذف شده
  1. 1 5
      services/clsi/app/coffee/CompileManager.coffee
  2. 1 1
      services/clsi/app/coffee/DockerRunner.coffee

+ 1 - 5
services/clsi/app/coffee/CompileManager.coffee

@@ -209,11 +209,7 @@ module.exports = CompileManager =
 				return callback(error)
 				return callback(error)
 			CompileManager._runSynctex project_id, user_id, command, (error, stdout) ->
 			CompileManager._runSynctex project_id, user_id, command, (error, stdout) ->
 				return callback(error) if error?
 				return callback(error) if error?
-				if stdout.toLowerCase().indexOf("warning") == -1
-					logType = "log"
-				else
-					logType = "err"
-				logger[logType] project_id: project_id, user_id:user_id, file_name: file_name, line: line, column: column, command:command, stdout: stdout, "synctex code output"
+				logger.log project_id: project_id, user_id:user_id, file_name: file_name, line: line, column: column, command:command, stdout: stdout, "synctex code output"
 				callback null, CompileManager._parseSynctexFromCodeOutput(stdout)
 				callback null, CompileManager._parseSynctexFromCodeOutput(stdout)
 
 
 	syncFromPdf: (project_id, user_id, page, h, v, callback = (error, filePositions) ->) ->
 	syncFromPdf: (project_id, user_id, page, h, v, callback = (error, filePositions) ->) ->

+ 1 - 1
services/clsi/app/coffee/DockerRunner.coffee

@@ -109,7 +109,7 @@ module.exports = DockerRunner =
 					err.code = exitCode
 					err.code = exitCode
 					return callback(err)
 					return callback(err)
 				containerReturned = true
 				containerReturned = true
-				options.SecurityOpt = null #small log line
+				options?.HostConfig?.SecurityOpt = null #small log line
 				logger.log err:err, exitCode:exitCode, options:options, "docker container has exited"
 				logger.log err:err, exitCode:exitCode, options:options, "docker container has exited"
 				callbackIfFinished()
 				callbackIfFinished()