Added wx.CallAfter to instances of logger.debug(...) and
logger.error(...)