Skip to content

Commit

Permalink
Remove debug logging from validateExportStream function
Browse files Browse the repository at this point in the history
  • Loading branch information
0marSalah committed Jan 9, 2025
1 parent 7bfa145 commit 3a13b9e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/verify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export async function validateExportStream(
tarStream: Readable
): Promise<{ valid: boolean; errors: string[] }> {
console.log('Validating export stream...')
console.log('length of tarStream: ', tarStream)
const extract = tar.extract()
const errors: string[] = []
const requiredFiles = [
Expand All @@ -24,7 +23,6 @@ export async function validateExportStream(
return await new Promise((resolve) => {
extract.on('entry', (header, stream, next) => {
const fileName = header.name.toLowerCase() // Normalize file name
console.log(`Processing file: ${fileName}`) // Log the file name
foundFiles.add(fileName)

let content = ''
Expand Down Expand Up @@ -64,9 +62,6 @@ export async function validateExportStream(
})

extract.on('finish', () => {
console.log('Found files:', Array.from(foundFiles)) // Debug log
console.log('Required files:', requiredFiles) // Debug log

// Check if all required files are present
for (const file of requiredFiles) {
if (!foundFiles.has(file)) {
Expand Down

0 comments on commit 3a13b9e

Please sign in to comment.