Description
I'm writing to report an issue found by Caio, one of my team's developers. He's setting up our development environment on his Ubuntu machine, and so he did a clean install of RabbitMQ 2.8.1 and then installed rabbit_webhooks from the gzips, using the same procedure that worked for me (installing your 0.13 and 0.14 gzips). However, this is what happens when we try to use it:
sudo rabbitmq-server -detached
Activating RabbitMQ plugins ...
WARNING Undefined function rabbit_log:debug/2
8 plugins activated:
- amqp_client-2.8.1
- lhttpc-1.2.5
- mochiweb-1.3-rmq2.8.1-git
- rabbit_webhooks-0.12
- rabbitmq_management-2.8.1
- rabbitmq_management_agent-2.8.1
- rabbitmq_mochiweb-2.8.1
- webmachine-1.7.0-rmq2.8.1-hg
And then, whenever we post something to the queue...
cat /var/log/rabbitmq/
......... stuff .......
=ERROR REPORT==== 12-Apr-2012::17:00:48 ===
** Generic server <0.352.0> terminating
** Last message in was {{'basic.deliver',
<<"amq.ctag-gU9kaIcVd-tGx7rCXoYUc_">>,1,false,
<<"webhooks.request">>,<<>>},
{amqp_msg,
{'P_basic',
<<"application/x-www-form-urlencoded">>,
undefined,undefined,undefined,undefined,
undefined,undefined,undefined,undefined,
undefined,undefined,undefined,undefined,
undefined},
<<"...MSG HERE...">>}}
** When Server state == {state,<0.361.0>,
{webhook,
{'exchange.declare',0,<<"webhooks.request">>,
<<"topic">>,false,false,true,false,false,
[]},
{'queue.declare',0,<<"webhooks.request.q">>,
false,false,false,true,false,[]},
<<"#">>,
"http://localhost:80/ResolveAi-Web/web/c/dist_new_request",
post,[],
{second,1,1000},
always},
<<"webhooks.request.q">>,
<<"amq.ctag-gU9kaIcVd-tGx7rCXoYUc_">>,0,
1594955571,always}
** Reason for termination ==
** {'function not exported',
[{rabbit_log,debug,
["msg: pn",
[{amqp_msg,
{'P_basic',<<"application/x-www-form-urlencoded">>,
undefined,undefined,undefined,undefined,undefined,
undefined,undefined,undefined,undefined,undefined,
undefined,undefined,undefined},
<<"...MSG HERE...">>}]]},
{rabbit_webhooks,handle_info,2},
{gen_server,handle_msg,5},
{proc_lib,init_p_do_apply,3}]}
This rabbit_log:debug function won't show up anywhere, no matter what we do with the plugins.