From 9ad39482ad3b1ffe52bddb79cfa9d97f5077a90e Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Wed, 26 Aug 2020 16:45:25 +0200 Subject: [PATCH] info should be an object --- packages/health-check/src/verboseChecks.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/health-check/src/verboseChecks.js b/packages/health-check/src/verboseChecks.js index 124a8e13..b0c6551a 100644 --- a/packages/health-check/src/verboseChecks.js +++ b/packages/health-check/src/verboseChecks.js @@ -251,18 +251,15 @@ function skylinkVerification(done, linkInfo) { up = up && validBody && validMetadata; } - let info = ""; - if (!up) { - info = "validBody: " + validBody + "\nvalidMetadata: " + validMetadata; - } + const info = { validBody, validMetadata }; // Return the entry information done({ name: linkInfo.description, - up: up, + up, + info, statusCode, time: checks.catchRequestTime(time), - info: info, critical: true, }); });