Krisseck / Hashtag-Wall-Server

Hashtag wall that displays posts from social media
http://hashtag.polso.info
MIT License
42 stars 9 forks source link

Cron logfile size #13

Open esdkrwl opened 5 years ago

esdkrwl commented 5 years ago

iot@iot:~/.pm2/logs$ ls -sh cron-out.log 14G cron-out.log

cron.js creates really large log-files (see above). It's not a fix, but if you start the cron job like this pm2 start cron.js -o "/dev/null" -e "/dev/null" no log files should be created and precious diskspace is saved.

Krisseck commented 5 years ago

Thanks for the issue, you are correct, the logs can get really huge.

This issue is related to #7, because it throws an error every time it finds a post that already exists, and those errors and stack traces can get quite long. I'll work on this and post the fix here.