Skip to content

Commit

Permalink
removed debug logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Mulholland committed Jun 3, 2018
1 parent 27eb933 commit 69e19fd
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/renderer/importPackage.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ const _ignores = ['__MACOSX']
export async function unzipFile(zipSource, storeCallback, isTransient) {
try {
let destination = createUnzipDestination(zipSource)
console.log(`destination is: ${destination}`)
await fs.ensureDir(destination)
console.log(`directory created: ${destination}`)
let processedProperties = await unzipFileToDir(zipSource, destination, isTransient)
storeCallback(processedProperties)
} catch (err) {
Expand All @@ -32,7 +30,6 @@ async function unzipFileToDir(zipSource, unzipDestination, isTransient) {
let processed = {json: [], resource: [], md: []}
await fs.createReadStream(zipSource).pipe(unzipper.Parse()).pipe(etl.map(async entry => {
let fileDestination = path.join(unzipDestination, entry.path)
console.log(`file destination is: ${fileDestination}`)
await processStream(entry, processed, fileDestination)
})).promise()
validateMdFile(processed)
Expand All @@ -54,8 +51,6 @@ async function getDataPackageJson(processed) {
}

async function processStream(entry, processed, fileDestination) {
console.log(`entry path is ${entry.path}`)
console.log(`file destination is: ${fileDestination}`)
if (isIgnored(fileDestination)) {
await cleanUp(entry, fileDestination)
} else {
Expand Down Expand Up @@ -169,7 +164,6 @@ async function getHotIdsFromFilenames(processed, unzipDestination, isTransient =
let csvTabs = {}
for (let pathname of processed.resource) {
let fileDestination = path.join(unzipDestination, pathname)
console.log(`next opened tab match to `, fileDestination)
let tabId = await getTabIdFromFilename(fileDestination)
// every processed csv should have a matching tab
if (!tabId) {
Expand Down

0 comments on commit 69e19fd

Please sign in to comment.