1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-04 19:20:05 +00:00

chore(*): add URL to logs

This commit is contained in:
Krishna Acondy
2021-05-11 08:57:35 +01:00
parent 15a774ff81
commit ad8dbfd4ec

View File

@@ -1101,9 +1101,6 @@ export class SASViyaApiClient {
Promise.reject(`Job state link was not found.`)
}
console.log(
`Attempting to poll job state from ${this.serverUrl}${stateLink.href}`
)
const { result: state } = await this.requestClient
.get<string>(
`${this.serverUrl}${stateLink.href}?_action=wait&wait=300`,
@@ -1114,7 +1111,7 @@ export class SASViyaApiClient {
)
.catch((err) => {
console.error(
'Error fetching job state. Starting poll, assuming job to be running.',
`Error fetching job state from ${this.serverUrl}${stateLink.href}. Starting poll, assuming job to be running.`,
err
)
return { result: 'running' }
@@ -1151,7 +1148,7 @@ export class SASViyaApiClient {
)
}
console.error(
'Error fetching job state. Resuming poll, assuming job to be running.',
`Error fetching job state from ${this.serverUrl}${stateLink.href}. Resuming poll, assuming job to be running.`,
err
)
return { result: 'running' }