From 2cec4a588d26d751ec1411e2db320f4c1a486b5a Mon Sep 17 00:00:00 2001 From: Nicolas Dupont Date: Mon, 8 Jul 2024 12:30:00 +0200 Subject: [PATCH] Add dates to PM2 error logs (#2887) --- deployment/pm2.config.cjs | 1 + 1 file changed, 1 insertion(+) diff --git a/deployment/pm2.config.cjs b/deployment/pm2.config.cjs index 38178991..4a803739 100644 --- a/deployment/pm2.config.cjs +++ b/deployment/pm2.config.cjs @@ -7,6 +7,7 @@ module.exports = { max_restarts: 2, min_uptime: '1h', // Set a relatively high duration (more than the longest run) so that restarts that occur before this duration has elapsed are considered unstable. restart_delay: 3 * 60 * 60 * 1000, // likely related to a connectivity problem that will take some time to be fixed + log_date_format: "YYYY-MM-DD HH:mm Z", env: { "NODE_OPTIONS": "--max-old-space-size=4096", // Avoid `FATAL ERROR: Reached heap limit Allocation failed` }