From c9178b00f2ea1970585ebea975f2e6716b603c9e Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Sat, 11 Jul 2020 08:04:20 +0200
Subject: [PATCH] logs: trace-only when maven host disabled

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

diff --git a/lib/datasource/maven/util.ts b/lib/datasource/maven/util.ts
index b3b4643842..439cc3dff0 100644
--- a/lib/datasource/maven/util.ts
+++ b/lib/datasource/maven/util.ts
@@ -4,6 +4,7 @@ import { ExternalHostError } from '../../types/errors/external-host-error';
 import { Http } from '../../util/http';
 
 import { MAVEN_REPO, id } from './common';
+import { HOST_DISABLED } from '../../constants/error-messages';
 
 const http: Record<string, Http> = {};
 
@@ -64,7 +65,10 @@ export async function downloadHttpProtocol(
     return raw.body;
   } catch (err) {
     const failedUrl = pkgUrl.toString();
-    if (isNotFoundError(err)) {
+    if (err.message === HOST_DISABLED) {
+      // istanbul ignore next
+      logger.trace({ failedUrl }, 'Host disabled');
+    } else if (isNotFoundError(err)) {
       logger.trace({ failedUrl }, `Url not found`);
     } else if (isHostError(err)) {
       // istanbul ignore next
-- 
GitLab