add info field and set verbose checks to critical

This commit is contained in:
Matthew Sevey 2020-08-26 10:22:55 -04:00
parent 843fcfde97
commit f201f9c4b4
1 changed files with 7 additions and 0 deletions

View File

@ -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,
});
});
}