getodk / central

ODK Central is a server that is easy to use, very fast, and stuffed with features that make data collection easier. Contribute and make the world a better place! ✨🗄✨
https://docs.getodk.org/central-intro/
Apache License 2.0
125 stars 152 forks source link

Don't log service logs to ~/.pm2/logs/ #376

Open matthew-white opened 1 year ago

matthew-white commented 1 year ago

In #293, we stopped pm2 from double-logging to stdout/stderr. However, it logs like pm2 is now logging to ~/.pm2/logs/ in the service container in addition to stdout/stderr. We don't use the logs in ~/.pm2/logs/, so those logs end up taking up space they don't need to.

From a quick look, it looks like we can stop the logging to ~/.pm2/logs/ by setting out_file and error_file to /dev/null: see the "Disable logging" section here. This page similarly indicates that the default of out_file and error_file is logging to ~/.pm2/logs/.

matthew-white commented 1 year ago

As of #422, pm2.config.js can be found in the central-backend repo.

venkatsaid commented 15 hours ago

Hi @matthew-white , Please review the PR for changes to this issue.