Fix exception on logging

I'm just ignoring the exception here so it doesn't crash the app, we need a better solution.
Merge pull request #1000 from DroidPlanner/issue-969

Fix exception on logging