mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
null check host options
This commit is contained in:
parent
44c0922a5b
commit
6f926007d2
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ module.exports = DockerRunner =
|
|||
options.name = name = "project-#{project_id}-#{fingerprint}"
|
||||
|
||||
logOptions = _.clone(options)
|
||||
logOptions.HostConfig.SecurityOpt = "secomp used, removed in logging"
|
||||
logOptions?.HostConfig?.SecurityOpt = "secomp used, removed in logging"
|
||||
logger.log project_id: project_id, options:logOptions, "running docker container"
|
||||
DockerRunner._runAndWaitForContainer options, volumes, timeout, (error, output) ->
|
||||
if error?.message?.match("HTTP code is 500")
|
||||
|
|
Loading…
Reference in a new issue