diff options
author | Tony Garnock-Jones <tonyg@lshift.net> | 2009-06-22 10:34:03 +0100 |
---|---|---|
committer | Tony Garnock-Jones <tonyg@lshift.net> | 2009-06-22 10:34:03 +0100 |
commit | d9a3dc8f43bc3b298e1a6e6fc4d2c7a84c81c8d6 (patch) | |
tree | 6d64c51456461229d99387497f4eb0258aa74b71 /src/rabbit_error_logger.erl | |
parent | ccf76ca9df7a7030e663874697d146ad1419a9fa (diff) | |
download | rabbitmq-server-d9a3dc8f43bc3b298e1a6e6fc4d2c7a84c81c8d6.tar.gz |
Convenience rabbit_basic functions.
Diffstat (limited to 'src/rabbit_error_logger.erl')
-rw-r--r-- | src/rabbit_error_logger.erl | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/rabbit_error_logger.erl b/src/rabbit_error_logger.erl index 76016a8c..b28574b7 100644 --- a/src/rabbit_error_logger.erl +++ b/src/rabbit_error_logger.erl @@ -31,6 +31,7 @@ -module(rabbit_error_logger). -include("rabbit.hrl"). +-include("rabbit_framing.hrl"). -define(LOG_EXCH_NAME, <<"amq.rabbitmq.log">>). @@ -75,10 +76,7 @@ publish(_Other, _Format, _Data, _State) -> publish1(RoutingKey, Format, Data, LogExch) -> {ok, _RoutingRes, _DeliveredQPids} = - rabbit_basic:publish( - rabbit_basic:delivery( - false, false, none, - rabbit_basic:message( - LogExch, RoutingKey, <<"text/plain">>, - list_to_binary(io_lib:format(Format, Data))))), + rabbit_basic:publish(LogExch, RoutingKey, false, false, none, + #'P_basic'{content_type = <<"text/plain">>}, + list_to_binary(io_lib:format(Format, Data))), ok. |