From b5021bbb54db0795fae905971b7cb1c484c5a3dc Mon Sep 17 00:00:00 2001 From: Gaston Yelmini Date: Wed, 3 Apr 2024 10:46:30 -0300 Subject: [PATCH] Add ds-connections pagination logger --- src/client.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/client.ts b/src/client.ts index 023044a..9d3ea18 100644 --- a/src/client.ts +++ b/src/client.ts @@ -225,6 +225,17 @@ export class APIClient { if (response?.data.data) { count += response.data.data.ds_connections.length; totalCount = response.data.data.totalCount; + + this.logger.info( + { + count, + totalCount, + dsConnectionsLenght: response.data.data.ds_connections.length, + totalCountResponse: response.data.data.totalCount, + }, + 'Data sources pagination state', + ); + for (const source of response.data.data.ds_connections) { await iteratee(source); }