From ad8dbfd4ec92f73c64e24a71478742f82c18071e Mon Sep 17 00:00:00 2001 From: Krishna Acondy Date: Tue, 11 May 2021 08:57:35 +0100 Subject: [PATCH] chore(*): add URL to logs --- src/SASViyaApiClient.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/SASViyaApiClient.ts b/src/SASViyaApiClient.ts index 95e5ef8..4e3b5ba 100644 --- a/src/SASViyaApiClient.ts +++ b/src/SASViyaApiClient.ts @@ -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( `${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' }