remove debugging code
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user