From 61ff7d732f80ed8041e1dbe86ebbe953f8327d25 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Sat, 6 Jun 2020 10:15:34 +0200
Subject: [PATCH] =?UTF-8?q?logs(github):=20don=E2=80=99t=20log=20full=20er?=
 =?UTF-8?q?r=20when=20404?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/util/http/github.ts | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/util/http/github.ts b/lib/util/http/github.ts
index 727aadc390..8c27a11405 100644
--- a/lib/util/http/github.ts
+++ b/lib/util/http/github.ts
@@ -125,7 +125,11 @@ export function handleGotError(
     logger.debug({ err }, '422 Error thrown from GitHub');
     throw new Error(PLATFORM_FAILURE);
   }
-  logger.debug({ err }, 'Unknown error fetching GitHub GraphQL');
+  if (err.statusCode === 404) {
+    logger.debug({ url: err.url }, 'GitHub 404');
+  } else {
+    logger.debug({ err }, 'Unknown GitHub error');
+  }
   throw err;
 }
 
-- 
GitLab