corvus-ch / rabbitmq-cli-consumer

Consume RabbitMQ messages into any cli program
MIT License
236 stars 36 forks source link

No log for bash/shell executable #39

Closed bakayolo closed 5 years ago

bakayolo commented 5 years ago

Hello,

Does the consumer only work with php executable?

=> rabbitmq-cli-consumer -V -e "echo RECEIVED" -i -u amqp://$RABBIT_USER:$RABBIT_PWD@$RABBIT_HOST -q $RABBIT_QUEUE

Logs never show up in STDOUT/STDERR/FILE whatever the config when using a bash/shell script.

Thanks for your help

corvus-ch commented 5 years ago

You are missing the --output, -o option. When set, the output of the executable (any executable including shell scripts) is captured and logged by rabbitmq-cli-consumer.

bakayolo commented 5 years ago

Don't know how I managed to miss this huge flag... Thanks a lot.

Gingonic commented 4 years ago

@corvus-ch Sorry to reopen this issue but shouldn't the following sentence in the README include that the flag "--output" is necessary as it implies a default behavior that is not true? "All logs, including the output of the called executable, will be available in STDOUT/STDERR.".

I tested this Version 2.3.3