Skip to content

Commit

Permalink
fix(log-separator): log separator should always wrap log
Browse files Browse the repository at this point in the history
  • Loading branch information
YuryShkoda committed Jul 24, 2023
1 parent 48c1ada commit 8940f4d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions api/src/controllers/internal/Execution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,17 +130,15 @@ export class ExecutionController {

resultParts.push(process.logsUUID)
resultParts.push(log)
resultParts.push(process.logsUUID)

if (includePrintOutput && runTime === RunTimeType.SAS) {
const printOutputPath = path.join(session.path, 'output.lst')
const printOutput = (await fileExists(printOutputPath))
? await readFile(printOutputPath)
: ''

if (printOutput) {
resultParts.push(process.logsUUID)
resultParts.push(printOutput)
}
if (printOutput) resultParts.push(printOutput)
}

return {
Expand Down

0 comments on commit 8940f4d

Please sign in to comment.