remove debugging code

This commit is contained in:
Brian Gough
2015-02-26 15:32:01 +00:00
parent e7ed8d786a
commit 280d64cf60

View File

@@ -27,15 +27,12 @@ module.exports = OutputCacheManager =
newFile = _.clone(file) newFile = _.clone(file)
src = target + '/' + file.path src = target + '/' + file.path
dst = target + '/' + relDir + '/' + file.path dst = target + '/' + relDir + '/' + file.path
#console.log 'src', src, 'dst', dst
fs.stat src, (err, stats) -> fs.stat src, (err, stats) ->
if err? if err?
cb(err) cb(err)
else if stats.isFile() else if stats.isFile()
#console.log 'isFile: copying'
fse.copy src, dst, (err) -> fse.copy src, dst, (err) ->
OutputFileOptimiser.optimiseFile src, dst, (err, result) -> OutputFileOptimiser.optimiseFile src, dst, (err, result) ->
console.log 'setting buildId on', newFile, 'to', buildId
newFile.build = buildId newFile.build = buildId
cb(err, newFile) cb(err, newFile)
else else
@@ -51,5 +48,4 @@ module.exports = OutputCacheManager =
# look in target for build dirs and delete if > N or age of mod time > T # look in target for build dirs and delete if > N or age of mod time > T
cacheDir = target + '/' + OutputCacheManager.CACHE_DIR cacheDir = target + '/' + OutputCacheManager.CACHE_DIR
fs.readdir cacheDir, (err, results) -> fs.readdir cacheDir, (err, results) ->
console.log 'CACHEDIR', results
callback(err) if callback? callback(err) if callback?