adding logging for cron jobs