mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-16 16:40:06 +00:00
chore(*): add URL to logs
This commit is contained in:
@@ -1101,9 +1101,6 @@ export class SASViyaApiClient {
|
|||||||
Promise.reject(`Job state link was not found.`)
|
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
|
const { result: state } = await this.requestClient
|
||||||
.get<string>(
|
.get<string>(
|
||||||
`${this.serverUrl}${stateLink.href}?_action=wait&wait=300`,
|
`${this.serverUrl}${stateLink.href}?_action=wait&wait=300`,
|
||||||
@@ -1114,7 +1111,7 @@ export class SASViyaApiClient {
|
|||||||
)
|
)
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.error(
|
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
|
err
|
||||||
)
|
)
|
||||||
return { result: 'running' }
|
return { result: 'running' }
|
||||||
@@ -1151,7 +1148,7 @@ export class SASViyaApiClient {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
console.error(
|
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
|
err
|
||||||
)
|
)
|
||||||
return { result: 'running' }
|
return { result: 'running' }
|
||||||
|
|||||||
Reference in New Issue
Block a user