From b314a171c7e62a919ada85df7c1abc0f4871b507 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Wed, 27 May 2020 11:50:34 +0200
Subject: [PATCH] =?UTF-8?q?logs:=20don=E2=80=99t=20log=20full=20gitlab=204?=
 =?UTF-8?q?04?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/platform/gitlab/gl-got-wrapper.ts | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/platform/gitlab/gl-got-wrapper.ts b/lib/platform/gitlab/gl-got-wrapper.ts
index 5e6d619a7a..60e69d479b 100644
--- a/lib/platform/gitlab/gl-got-wrapper.ts
+++ b/lib/platform/gitlab/gl-got-wrapper.ts
@@ -33,6 +33,11 @@ async function get(path: string, options: any): Promise<GotResponse> {
     }
     return res;
   } catch (err) /* istanbul ignore next */ {
+    if (err.statusCode === 404) {
+      logger.trace({ err }, 'GitLab 404');
+      logger.debug({ url: err.url }, 'GitLab API 404');
+      throw err;
+    }
     logger.debug({ err }, 'Gitlab API error');
     if (
       err.statusCode === 429 ||
-- 
GitLab