Add logging to cron