Cron Issue

I have written a custom cron. This cron executes a rake task every 5 minutes. I also log the trace of this execution in a file locally on my server. The whole process seems to execute seamlessly every 5 minutes, but then it seems to log it in /var/log/syslog. I investigated on the syslog and found that system's critical errors, and other cron issues are logged in syslog. Has anybody faced this kind of an issue ?

A program can run flawlessly and still get logged if it returns a nonzero value, check what status your program exits with.

1 Like

Thanks for the response, but then my program always exits with a status of 0. I don't know why it gets logged. !

Is it in a user crontab, or is it in /etc/crontab ? Things in /etc/crontab get logged I believe.