Fixed logging on cron runs