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

Add ds-connections pagination logger #20

Merged
merged 1 commit into from
Apr 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading