Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined function rabbit_log:debug/2 #3

Open
rafaelkaufmann opened this issue Apr 12, 2012 · 1 comment
Open

Undefined function rabbit_log:debug/2 #3

rafaelkaufmann opened this issue Apr 12, 2012 · 1 comment
Assignees

Comments

@rafaelkaufmann
Copy link

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.

@ghost ghost assigned jbrisbin Apr 12, 2012
@jbrisbin
Copy link
Owner

The debug logging shouldn't be in there at all. Looks like it was an oversight that caused it to fail in the latest version of RabbitMQ that doesn't have a "debug" function (it has "info", "log" and others, though).

The latest version of code checked in does not have any debug logging in it. I deleted the old tar files and put up a fresh one. Please try the 0.15 tar file and see if that makes a difference.

Thanks for letting me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants