remove debugging code

This commit is contained in:
Brian Gough 2015-02-26 15:32:01 +00:00
parent 77b4247f86
commit a877dd36e7

View file

@ -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?