Fix issues #9 and #10
Merge pull request #13 from hatbot-team/fix-logging

Fix issues #9 and #10