added error logs in scheduler