From 8b5b4bf0c8c3d97baede19f22d40633e33df720d Mon Sep 17 00:00:00 2001 From: Nazar Leush Date: Fri, 6 Dec 2024 21:00:34 +0200 Subject: [PATCH] debug `maxListenersExceededWarning` --- app.js | 6 +++++- package.json | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index 60f407f1e..0ebdfb3a7 100644 --- a/app.js +++ b/app.js @@ -2,6 +2,10 @@ import { cacheMiddleware, NotFound } from './utils.js'; import CONFIG from './config.loader.js'; global.CONFIG = CONFIG; +import maxListenersExceededWarning from 'max-listeners-exceeded-warning'; + +maxListenersExceededWarning(); + console.log(""); console.log("Starting Iframely..."); console.log("Base URL for embeds that require hosted renders:", CONFIG.baseAppUrl); @@ -174,4 +178,4 @@ app.get('/', function(req, res) { res.end(); }); -process.title = "iframely"; \ No newline at end of file +process.title = "iframely"; diff --git a/package.json b/package.json index e45f741d6..b013b1b4d 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,7 @@ "iconv-lite": "^0.6.3", "jslint": "^0.12.1", "jsontoxml": "^1.0.1", + "max-listeners-exceeded-warning": "^0.0.1", "memcached": "2.2.2", "moment": "^2.30.1", "node-cache": "^1.1.0",