code: function flushQueueIfAvailable()
      {
          if (!isLogAvailable())
              return;
  
          clearInterval(WebInspector.log.interval);
          delete WebInspector.log.interval;
  
          flushQueue();
      }
docs: flush the queue if it console is available - this function is run on an interval