add info field and set verbose checks to critical
This commit is contained in:
parent
843fcfde97
commit
f201f9c4b4
|
@ -251,12 +251,19 @@ function skylinkVerification(done, linkInfo) {
|
||||||
up = up && validBody && validMetadata;
|
up = up && validBody && validMetadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let info = "";
|
||||||
|
if (!up) {
|
||||||
|
info = "validBody: " + validBody + "\nvalidMetadata: " + validMetadata;
|
||||||
|
}
|
||||||
|
|
||||||
// Return the entry information
|
// Return the entry information
|
||||||
done({
|
done({
|
||||||
name: linkInfo.description,
|
name: linkInfo.description,
|
||||||
up: up,
|
up: up,
|
||||||
statusCode,
|
statusCode,
|
||||||
time: checks.catchRequestTime(time),
|
time: checks.catchRequestTime(time),
|
||||||
|
info: info,
|
||||||
|
critical: true,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue