From 2a04f4f5c238c15cfa48caf3f9bc81c0bdab10de Mon Sep 17 00:00:00 2001 From: Ernestas Lisauskas Date: Thu, 25 Jan 2024 10:29:03 +0000 Subject: [PATCH] feat: try this --- ampbench_main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ampbench_main.js b/ampbench_main.js index d8f2786..3223b10 100644 --- a/ampbench_main.js +++ b/ampbench_main.js @@ -28,6 +28,8 @@ if (module === require.main) { }); server.timeout = 20000; // 20 secs + process.setMaxListeners(20); + process.on('uncaughtException', function(err) { console.log('METRIC ns=ampbench name=uncaughtException errorMsg=' + err.message + ' errorCode=' + err.code); console.log('uncaught exception ' + err.stack);