Skip to content

Commit 8f8635e

Browse files
committed
add log
1 parent 6e0bba7 commit 8f8635e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/worker/zmon-worker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export default class ZmonWorker {
4949
value: alertRes,
5050
td,
5151
};
52+
console.log(alertObj);
5253
if (!!alertRes) {
5354
this.storeAlertResult(alert.id, entity.id, JSON.stringify(alertObj));
5455
console.log(`alert ${alert.id} triggered on entity ${entity.id}`);
@@ -66,10 +67,9 @@ export default class ZmonWorker {
6667
}
6768

6869
private executeZmonTask(checkScript: string, checkId: string, entity: any): any {
69-
7070
const {td, result} = execZmonScript(execCtx, checkScript, {entity});
71-
return result;
7271

72+
return result;
7373
}
7474

7575
private checkAndNotify(req: any) {

0 commit comments

Comments
 (0)