code: def enqueue_event(self, event, block):
          
          try:
              self._event_queue.put_nowait(event)
  
              if self._notified_buffer_full:  # Non-blocking and buffer was full
                  self._notify(logging.WARNING, consts.LOG_MSG_BUFFER_FREED)
                  self._notified_buffer_full = False
  
          except py2to3.queue.Full:
              if block:  # Blocking - should block until space is freed
                  self._event_queue.put(event)
  
              elif not self._notified_buffer_full:  # Don't block, msg not emitted
                  self._notify(logging.WARNING, consts.LOG_MSG_BUFFER_FULL)
                  self._notified_buffer_full = True
                  return False
  
          return True
docs: Enqueues an event in the buffer to be sent to the Alooma server
          :param event: A dict representing a formatted event to be sent by the
                        sender
          :param block: Whether or not we should block if the event buffer is full
          :return: True if the event was enqueued successfully, else False