Skip to content

Commit

Permalink
console added with double quotes and semicolons. console added with u…
Browse files Browse the repository at this point in the history
…sername so i can remove later
  • Loading branch information
neelbhanushali committed Feb 11, 2024
1 parent a16b42f commit 33ec4a3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/model/monitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -606,9 +606,9 @@ class Monitor extends BeanModel {
if (result.toString() === this.expectedValue) {
bean.msg += ", expected value is found";
bean.status = UP;
console.log('json-query successful')
console.log("neelbhanushali: json-query successful");
} else {
console.log('json-query unsuccessful')
console.log("neelbhanushali: json-query unsuccessful");
throw new Error(bean.msg + ", but value is not equal to expected value, value was: [" + result + "]");
}
}
Expand Down Expand Up @@ -900,7 +900,7 @@ class Monitor extends BeanModel {
retries = 0;

} catch (error) {
console.log('came in catch')
console.log("neelbhanushali: came in catch");
if (error?.name === "CanceledError") {
bean.msg = `timeout by AbortSignal (${this.timeout}s)`;
} else {
Expand All @@ -915,7 +915,7 @@ class Monitor extends BeanModel {
} else if ((this.maxretries > 0) && (retries < this.maxretries)) {
retries++;
bean.status = PENDING;
console.log('checking retries', retries, this.maxretries)
console.log("neelbhanushali: checking retries", retries, this.maxretries);
} else {
// Continue counting retries during DOWN
retries++;
Expand Down

0 comments on commit 33ec4a3

Please sign in to comment.