Skip to content

Commit

Permalink
feat: catch error
Browse files Browse the repository at this point in the history
  • Loading branch information
renanccastro committed Mar 14, 2024
1 parent 9ee6e87 commit 016e190
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/models/system.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ export function SystemModel () {
}, 2000);

setInterval(async () => {
await this.getFreeMemory();
try {
await this.getFreeMemory();
} catch (e) {
console.log('Monti APM: failed to get memory info', e);
}
}, 2000);
}

Expand Down

0 comments on commit 016e190

Please sign in to comment.