Fix logging bug where all messages were errors.
Check event dispatch for errors.