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);