Enable logging
Do not log error as it will show up in the exception and fix typo.
Merge pull request #25 from minimul/logging

Enable logging