Added logging to cronjobs