Added logging for issue #179
Merge pull request #180 from hintjens/master

Added logging for issue #179