Skip to content

Commit

Permalink
Merge branch 'main' into keyddb-config
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore authored Jul 15, 2024
2 parents 38a41ed + bb48711 commit 5fad259
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions server/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@ export class SitespeedioServer {
await setupResultQueue();
// Tell the world that we are starting
await publish('server', 'start');

process.on('uncaughtException', error => {
// ioredis configuration is tricky to get right
// this can spam the log but at least we catch everything
logger.error('Uncaught Exception thrown:', error);
});
}

async stop() {
Expand Down
6 changes: 6 additions & 0 deletions testrunner/src/sitespeedio-testrunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ export class SitespeedioTestRunner {
}

await queueHandler.start();

process.on('uncaughtException', error => {
// ioredis configuration is tricky to get right
// this can spam the log but at least we catch everything
logger.error('Uncaught Exception thrown:', error);
});
}

async stop() {
Expand Down

0 comments on commit 5fad259

Please sign in to comment.