title: Get message to persist in RabbitMQ when there a no consumers
body: <p>My scenario: I want my app to publish logs to RabbitMQ and have another process consume those logs and write to a DB.  Additionally, logs should persist in RabbitMQ even if there is no consumer at the moment.  However, with the code I have now, my logs don't show up in RabbitMQ unless I start a consumer.  What am I doing wrong?  </p>
  
  <p>My code:</p>
  
  <pre><code>var amqp = require('amqp');
  var connection = amqp.createConnection({
      host: "localhost",
      port: 5672
  });
  
  connection.on('ready', function() {
      // Immediately publish
      setTimeout(function() {
          connection.publish('logs',
              new Buffer('hello world'), {},
              function(err, res) {
                  console.log(err, '|', res);
              });
      }, 0);
  
      // Wait a second to subscribe
      setTimeout(function() {
          connection.queue('logs', function(q) {
              q.subscribe(function(message) {
                  console.log(message.data);
              });
          });
      }, 1000);
  });
  </code></pre>