From a8e4119270868a1dabccd405853a7340f8dcd8a5 Mon Sep 17 00:00:00 2001 From: Pujit Mehrotra Date: Tue, 2 Sep 2025 15:30:13 -0400 Subject: [PATCH] fix: rm redundant emission to `$HOME/.pm2/logs` (#1640) Override the pm2 daemon's emission of `logs/unraid-api-{out,error}.log`, which is a duplicate of the stdout appended to `/var/log/graphql-api.log`. Correctly implements the sane interpretation of what the `log_file` configuration does. ## Summary by CodeRabbit * **Chores** * Improved process logging by separating standard output and error streams while supporting merged logs when multiple sources are present. * Enhances log clarity and troubleshooting without changing application behavior. --- api/ecosystem.config.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/ecosystem.config.json b/api/ecosystem.config.json index 4bd8635fe..4fea24e6e 100644 --- a/api/ecosystem.config.json +++ b/api/ecosystem.config.json @@ -13,7 +13,9 @@ "watch": false, "interpreter": "/usr/local/bin/node", "ignore_watch": ["node_modules", "src", ".env.*", "myservers.cfg"], - "log_file": "/var/log/graphql-api.log", + "out_file": "/var/log/graphql-api.log", + "error_file": "/var/log/graphql-api.log", + "merge_logs": true, "kill_timeout": 10000 } ]