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! ✨🗄✨
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/.
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
anderror_file
to /dev/null: see the "Disable logging" section here. This page similarly indicates that the default ofout_file
anderror_file
is logging to ~/.pm2/logs/.