8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf939e3 commit 6f6be60Copy full SHA for 6f6be60
javascript-nodejs/src/emit_log.js
@@ -13,9 +13,10 @@ function createChannel(conn) {
13
function logMessage(ch) {
14
var ex = 'logs';
15
var ok = ch.assertExchange(ex, 'fanout', {durable: false})
16
- var msg = process.argv.slice(2).join(' ') || 'Hello World!';
17
18
return ok.then(function() {
+ var msg = process.argv.slice(2).join(' ') || 'Hello World!';
19
+
20
ch.publish(ex, '', new Buffer(msg));
21
console.log(" [x] Sent '%s'", msg);
22
return ch.close();
0 commit comments