Log errors
Merge pull request #2 from pusewicz/patch-1

Log errors