mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-18 13:51:28 +00: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}"
|
options.name = name = "project-#{project_id}-#{fingerprint}"
|
||||||
|
|
||||||
logOptions = _.clone(options)
|
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"
|
logger.log project_id: project_id, options:logOptions, "running docker container"
|
||||||
DockerRunner._runAndWaitForContainer options, volumes, timeout, (error, output) ->
|
DockerRunner._runAndWaitForContainer options, volumes, timeout, (error, output) ->
|
||||||
if error?.message?.match("HTTP code is 500")
|
if error?.message?.match("HTTP code is 500")
|
||||||
|
|
Loading…
Reference in a new issue