now logging errors when they happen.
Merge pull request #28 from petflow/feature/log-errors-properly

now logging errors when they happen.