log each file unzipped

This commit is contained in:
Brian Gough 2017-10-17 16:31:56 +01:00
parent 76d73951f2
commit 6001f14261

View file

@ -81,6 +81,7 @@ module.exports = ArchiveManager =
# read all the entries # read all the entries
zipfile.readEntry() zipfile.readEntry()
zipfile.on "entry", (entry) -> zipfile.on "entry", (entry) ->
logger.log {source:source, fileName: entry.fileName}, "processing zip file entry"
ArchiveManager._checkFilePath entry, destination, (err, destFile) -> ArchiveManager._checkFilePath entry, destination, (err, destFile) ->
if err? if err?
logger.warn err:err, source:source, destination:destination, "skipping bad file path" logger.warn err:err, source:source, destination:destination, "skipping bad file path"