Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #20 from JupiterOne/add-pagination-logger
Browse files Browse the repository at this point in the history
Add ds-connections pagination logger
  • Loading branch information
gastonyelmini authored Apr 3, 2024
2 parents 2be4697 + b5021bb commit 003b586
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 003b586

Please sign in to comment.