diff options
author | Matthias Radestock <matthias@lshift.net> | 2009-05-20 15:31:16 +0100 |
---|---|---|
committer | Matthias Radestock <matthias@lshift.net> | 2009-05-20 15:31:16 +0100 |
commit | 5efb8249ddb1bead70a20f2f0ce3043b1529dee2 (patch) | |
tree | 3090f45549b7e72a8a1594b2e9de94ea50f66a48 /src/rabbit_error_logger.erl | |
parent | 1fe75761f072f1fbb6b82937b1aee879ce9295fb (diff) | |
download | rabbitmq-server-5efb8249ddb1bead70a20f2f0ce3043b1529dee2.tar.gz |
refactoring of API
Diffstat (limited to 'src/rabbit_error_logger.erl')
-rw-r--r-- | src/rabbit_error_logger.erl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/rabbit_error_logger.erl b/src/rabbit_error_logger.erl index bc14fdb8..d73edb73 100644 --- a/src/rabbit_error_logger.erl +++ b/src/rabbit_error_logger.erl @@ -74,7 +74,9 @@ publish(_Other, _Format, _Data, _State) -> ok. publish1(RoutingKey, Format, Data, LogExch) -> - {ok, _RoutingRes} = rabbit_exchange:simple_publish( - false, false, LogExch, RoutingKey, <<"text/plain">>, - list_to_binary(io_lib:format(Format, Data))), + {ok, _RoutingRes, _DeliveredQPids} = + rabbit_basic:publish(false, false, none, + rabbit_basic:message( + LogExch, RoutingKey, <<"text/plain">>, + list_to_binary(io_lib:format(Format, Data)))), ok. |