Fixed scheduler error logging