mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Only archive main log and blg
This commit is contained in:
parent
9c7e8af851
commit
a2edeb800b
2 changed files with 4 additions and 2 deletions
|
@ -35,7 +35,7 @@ module.exports = OutputCacheManager =
|
|||
OutputCacheManager.expireOutputFiles cacheRoot, {keep: buildId}
|
||||
|
||||
# Archive logs in background
|
||||
if Settings.clsi?.archive_logs
|
||||
if Settings.clsi?.archive_logs or Settings.clsi?.strace
|
||||
OutputCacheManager.archiveLogs outputFiles, compileDir, (err) ->
|
||||
if err?
|
||||
logger.warn err:err, "erroring archiving log files"
|
||||
|
@ -153,6 +153,6 @@ module.exports = OutputCacheManager =
|
|||
_checkIfShouldArchive: (src, callback = (err, shouldCopy) ->) ->
|
||||
if Path.basename(src).match(/^strace/)
|
||||
return callback(null, true)
|
||||
if Path.basename(src).match(/^output\.(?!pdf)/)
|
||||
if Settings.clsi?.archive_logs and Path.basename(src) in ["output.log", "output.blg"]
|
||||
return callback(null, true)
|
||||
return callback(null, false)
|
|
@ -17,6 +17,8 @@ module.exports =
|
|||
synctexBaseDir: (project_id) -> Path.join(@compilesDir, project_id)
|
||||
|
||||
# clsi:
|
||||
# strace: true
|
||||
# archive_logs: true
|
||||
# commandRunner: "docker-runner-sharelatex"
|
||||
# docker:
|
||||
# image: "quay.io/sharelatex/texlive-full"
|
||||
|
|
Loading…
Reference in a new issue