From f201f9c4b4ea6e170c9ba35bc026549b3c9a5159 Mon Sep 17 00:00:00 2001 From: Matthew Sevey Date: Wed, 26 Aug 2020 10:22:55 -0400 Subject: [PATCH] add info field and set verbose checks to critical --- packages/health-check/src/verboseChecks.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/health-check/src/verboseChecks.js b/packages/health-check/src/verboseChecks.js index 4c9bdc2a..124a8e13 100644 --- a/packages/health-check/src/verboseChecks.js +++ b/packages/health-check/src/verboseChecks.js @@ -251,12 +251,19 @@ function skylinkVerification(done, linkInfo) { up = up && validBody && validMetadata; } + let info = ""; + if (!up) { + info = "validBody: " + validBody + "\nvalidMetadata: " + validMetadata; + } + // Return the entry information done({ name: linkInfo.description, up: up, statusCode, time: checks.catchRequestTime(time), + info: info, + critical: true, }); }); }