Fixed scheduler error logging
Merge pull request #542 from anandpdoshi/hotfix

Fixed scheduler error logging