We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13aa64e commit b9073f1Copy full SHA for b9073f1
packages/core/src/amazonq/session/sessionState.ts
@@ -111,9 +111,7 @@ export abstract class CodeGenBase {
111
file.zipFilePath === RunCommandLogFileName
112
)
113
if (logFileInfo) {
114
- logFileInfo.fileContent = truncate(logFileInfo.fileContent, 10000000) // Limit to max 20MB
115
- if (logFileInfo.fileContent.length === 10000000) {
116
- logFileInfo.fileContent += '\n... [truncated]'
+ logFileInfo.fileContent = truncate(logFileInfo.fileContent, 10000000, '\n... [truncated]') // Limit to max 20MB
117
}
118
getLogger().info(`sessionState: Run Command logs, ${logFileInfo.fileContent}`)
119
newFileContents.splice(newFileContents.indexOf(logFileInfo), 1)
0 commit comments