chore: improve graphql shrinking log (#18445)

This commit is contained in:
Rhys Arkins 2022-10-21 09:04:13 +02:00 committed by GitHub
parent 3aa94d46f4
commit da244e3b9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -206,7 +206,11 @@ export class GithubGraphqlDatasourceHelper<
if (!shrinkResult) {
throw err;
}
logger.debug({ err, size: this.itemsPerQuery }, 'Shrinking page size');
const { body, ...options } = this.getRawQueryOptions();
logger.debug(
{ options, newSize: this.itemsPerQuery },
'Shrinking GitHub GraphQL page size after error'
);
}
}