mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
remove debugging code
This commit is contained in:
parent
77b4247f86
commit
a877dd36e7
1 changed files with 0 additions and 4 deletions
|
@ -27,15 +27,12 @@ module.exports = OutputCacheManager =
|
|||
newFile = _.clone(file)
|
||||
src = target + '/' + file.path
|
||||
dst = target + '/' + relDir + '/' + file.path
|
||||
#console.log 'src', src, 'dst', dst
|
||||
fs.stat src, (err, stats) ->
|
||||
if err?
|
||||
cb(err)
|
||||
else if stats.isFile()
|
||||
#console.log 'isFile: copying'
|
||||
fse.copy src, dst, (err) ->
|
||||
OutputFileOptimiser.optimiseFile src, dst, (err, result) ->
|
||||
console.log 'setting buildId on', newFile, 'to', buildId
|
||||
newFile.build = buildId
|
||||
cb(err, newFile)
|
||||
else
|
||||
|
@ -51,5 +48,4 @@ module.exports = OutputCacheManager =
|
|||
# look in target for build dirs and delete if > N or age of mod time > T
|
||||
cacheDir = target + '/' + OutputCacheManager.CACHE_DIR
|
||||
fs.readdir cacheDir, (err, results) ->
|
||||
console.log 'CACHEDIR', results
|
||||
callback(err) if callback?
|
||||
|
|
Loading…
Reference in a new issue