Skip to content

Commit

Permalink
fix(logs API): pass limit to sasjs job execute logs Endpoint (#288)
Browse files Browse the repository at this point in the history
Co-authored-by: Krishna Acondy <[email protected]>
Co-authored-by: Allan Bowe <[email protected]>
  • Loading branch information
3 people authored Dec 2, 2020
1 parent 2382ab1 commit a1d4547
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/commands/job/execute.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,11 @@ export async function execute(

if (logObj) {
const logUrl = target.serverUrl + logObj.href
const logData = await sasjs.fetchLogFileContent(logUrl, accessToken)
const logCount = submittedJob.logStatistics.lineCount
const logData = await sasjs.fetchLogFileContent(
`${logUrl}?limit=${logCount}`,
accessToken
)
const logJson = JSON.parse(logData)

let logPath
Expand Down

0 comments on commit a1d4547

Please sign in to comment.