diff --git a/lib/platform/github/index.ts b/lib/platform/github/index.ts index 263905609959191961f51f61d272bd81434a53a7..adf62069ebdff925f6e41982a26cbc3d01cf4f55 100644 --- a/lib/platform/github/index.ts +++ b/lib/platform/github/index.ts @@ -216,7 +216,7 @@ export async function initRepo({ // istanbul ignore if if (endpoint) { // Necessary for Renovate Pro - do not remove - logger.debug('Overriding default GitHub endpoint'); + logger.debug({ endpoint }, 'Overriding default GitHub endpoint'); defaults.endpoint = endpoint; githubHttp.setBaseUrl(endpoint); } diff --git a/lib/util/http/github.ts b/lib/util/http/github.ts index b555bb47b3303c4efceb288a847832c606ca08ca..727aadc390d6e6c196b75b03cd6695d092b7253b 100644 --- a/lib/util/http/github.ts +++ b/lib/util/http/github.ts @@ -125,6 +125,7 @@ export function handleGotError( logger.debug({ err }, '422 Error thrown from GitHub'); throw new Error(PLATFORM_FAILURE); } + logger.debug({ err }, 'Unknown error fetching GitHub GraphQL'); throw err; } @@ -286,7 +287,7 @@ export class GithubHttp extends Http<GithubHttpOptions, GithubHttpOptions> { } else { count = Math.floor(count / 2); if (count === 0) { - logger.error('Error fetching GraphQL nodes'); + logger.error({ gqlRes }, 'Error fetching GraphQL nodes'); isIterating = false; } }