Skip to content

Commit 8a773bd

Browse files
committedJan 15, 2025·
Remove debug logging from validateExportStream function
1 parent e08dfc7 commit 8a773bd

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed
 

‎src/verify.ts

-5
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export async function validateExportStream(
1111
tarStream: Readable
1212
): Promise<{ valid: boolean; errors: string[] }> {
1313
console.log('Validating export stream...')
14-
console.log('length of tarStream: ', tarStream)
1514
const extract = tar.extract()
1615
const errors: string[] = []
1716
const requiredFiles = [
@@ -24,7 +23,6 @@ export async function validateExportStream(
2423
return await new Promise((resolve) => {
2524
extract.on('entry', (header, stream, next) => {
2625
const fileName = header.name.toLowerCase() // Normalize file name
27-
console.log(`Processing file: ${fileName}`) // Log the file name
2826
foundFiles.add(fileName)
2927

3028
let content = ''
@@ -64,9 +62,6 @@ export async function validateExportStream(
6462
})
6563

6664
extract.on('finish', () => {
67-
console.log('Found files:', Array.from(foundFiles)) // Debug log
68-
console.log('Required files:', requiredFiles) // Debug log
69-
7065
// Check if all required files are present
7166
for (const file of requiredFiles) {
7267
if (!foundFiles.has(file)) {

0 commit comments

Comments
 (0)
Please sign in to comment.