log test
This commit is contained in:
parent
219a9ff104
commit
e9554e14fa
1 changed files with 1 additions and 0 deletions
|
|
@ -57,6 +57,7 @@ async function createConsumer( //----> consumer
|
||||||
channel.consume(
|
channel.consume(
|
||||||
queue,
|
queue,
|
||||||
async (msg) => {
|
async (msg) => {
|
||||||
|
console.log("[AMQ] MSQ",msg);
|
||||||
if (!msg) return;
|
if (!msg) return;
|
||||||
if ((await handler(msg)) || retries++ >= 3) {
|
if ((await handler(msg)) || retries++ >= 3) {
|
||||||
retries = 0;
|
retries = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue