Merge pull request #2824 from bluewave-labs/fix/remove-log
remove console statement
This commit is contained in:
1 file changed
-6
@@ -152,12 +152,6 @@ class StatusService {
|
|||||||
const failures = monitor.statusWindow.filter((s) => s === false).length;
|
const failures = monitor.statusWindow.filter((s) => s === false).length;
|
||||||
const failureRate = (failures / monitor.statusWindow.length) * 100;
|
const failureRate = (failures / monitor.statusWindow.length) * 100;
|
||||||
|
|
||||||
console.log({
|
|
||||||
failureRate,
|
|
||||||
status: monitor.status,
|
|
||||||
statusWindow: monitor.statusWindow,
|
|
||||||
});
|
|
||||||
|
|
||||||
// If threshold has been met and the monitor is not already down, mark down:
|
// If threshold has been met and the monitor is not already down, mark down:
|
||||||
if (failureRate >= monitor.statusWindowThreshold && monitor.status !== false) {
|
if (failureRate >= monitor.statusWindowThreshold && monitor.status !== false) {
|
||||||
newStatus = false;
|
newStatus = false;
|
||||||
|
|||||||
Reference in new issue
Block a user