From c99c74b8e4764ca6a7c1101ad4f24cd218d81e21 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Mon, 2 Jul 2018 21:31:37 +0200 Subject: [PATCH] logs: additional logs for abuse detection rejection --- lib/platform/github/gh-got-wrapper.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/platform/github/gh-got-wrapper.js b/lib/platform/github/gh-got-wrapper.js index 85a43f74b0..307dc0a509 100644 --- a/lib/platform/github/gh-got-wrapper.js +++ b/lib/platform/github/gh-got-wrapper.js @@ -80,7 +80,12 @@ async function get(path, opts, retries = 5) { err.message.startsWith('You have triggered an abuse detection mechanism') ) { logger.info( - { statusCode: err.statusCode, message: err.message }, + { + headers: err.headers, + path, + statusCode: err.statusCode, + message: err.message, + }, `Retrying request` ); -- GitLab