OnStatusHooks.logger.info(info_message)
except NoSuchUserException:
OnStatusHooks.logger.error("no username found for op user {}".format(user_id))
except Exception as e:
OnStatusHooks.logger.error("exception while getting username for op {}: {}".format(user_id, str(e)))
OnStatusHooks.logger.exception(e)
environ.env.capture_exception(sys.exc_info())
if status == "online":
OnStatusHooks.set_online(user_id, user_name, image)