Skip to content

Commit 36f3eed

Browse files
authored
fix: quick fix for repeated logging from squashed commit (aws#2291)
1 parent 905de69 commit 36f3eed

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

server/aws-lsp-codewhisperer/src/language-server/netTransform/artifactManager.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,6 @@ export class ArtifactManager {
182182
//if can't generate hash then file copy failed previously
183183
continue
184184
}
185-
if (contentHash.length == 0) {
186-
//if can't generate hash then file copy failed previously
187-
continue
188-
}
189185
const relativePath = this.normalizeSourceFileRelativePath(request.SolutionRootPath, filePath)
190186
codeFiles.push({
191187
contentMd5Hash: contentHash,
@@ -331,15 +327,6 @@ export class ArtifactManager {
331327
if (failedCopies.length > 0) {
332328
this.logging.log(`Files - ${failedCopies.join(',')} - could not be copied.`)
333329
}
334-
this.logging.log(
335-
`Files with extensions ${filteredExtensions.join(', ')} are not zipped, as they are not necessary for transformation`
336-
)
337-
this.logging.log(
338-
`Files in directories ${filteredDirectories.join(', ')} are not zipped, as they are not necessary for transformation`
339-
)
340-
if (failedCopies.length > 0) {
341-
this.logging.log(`Files - ${failedCopies.join(',')} - could not be copied.`)
342-
}
343330
const zipPath = path.join(this.workspacePath, zipFileName)
344331
this.logging.log('Zipping files to ' + zipPath)
345332
await this.zipDirectory(folderPath, zipPath)
@@ -441,8 +428,6 @@ export class ArtifactManager {
441428
this.logging.log(`Failed to copy from ${sourceFilePath} and error is ${err}`)
442429
failedCopies.push(sourceFilePath)
443430
resolve()
444-
failedCopies.push(sourceFilePath)
445-
resolve()
446431
} else {
447432
resolve()
448433
}

0 commit comments

Comments
 (0)