Add debug mode to log rejections
This commit is contained in:
parent
9e1b9b5257
commit
a9e0b40f13
4
index.js
4
index.js
@ -36,5 +36,7 @@ async function capture() {
|
||||
(function loop(){
|
||||
capture().finally(()=>{
|
||||
setTimeout(loop, config.interval);
|
||||
}).catch(()=>{});
|
||||
}).catch(rejection => {
|
||||
if (process.env.DEBUG) console.error(rejection);
|
||||
});
|
||||
})();
|
||||
|
Loading…
x
Reference in New Issue
Block a user