summaryrefslogtreecommitdiff
path: root/src/rabbit_mirror_queue_misc.erl
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2013-11-11 14:22:57 +0000
committerSimon MacMullen <simon@rabbitmq.com>2013-11-11 14:22:57 +0000
commitf867807a58ccb611c8fc22eef3d01ceb7c8fc312 (patch)
treed348c2967f8ff81ea841e09728f9d3cccebd954f /src/rabbit_mirror_queue_misc.erl
parente54434c75490ff3995fb97afb5fafd1541ec81f7 (diff)
downloadrabbitmq-server-f867807a58ccb611c8fc22eef3d01ceb7c8fc312.tar.gz
Re-add the log invocations we lost. This does lead to the stale master pid warning getting logged on a different node (the slave node rather than the node that attempted to start the slave) but I doubt we care about that.
Diffstat (limited to 'src/rabbit_mirror_queue_misc.erl')
-rw-r--r--src/rabbit_mirror_queue_misc.erl7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rabbit_mirror_queue_misc.erl b/src/rabbit_mirror_queue_misc.erl
index 47a44278..c53ad7b9 100644
--- a/src/rabbit_mirror_queue_misc.erl
+++ b/src/rabbit_mirror_queue_misc.erl
@@ -184,14 +184,15 @@ add_mirror(QName, MirrorNode) ->
end
end).
-start_child(_Name, MirrorNode, Q) ->
- %% TODO re-add some log stuff here.
+start_child(Name, MirrorNode, Q) ->
case rabbit_misc:with_exit_handler(
rabbit_misc:const(down),
fun () ->
rabbit_mirror_queue_slave_sup:start_child(MirrorNode, [Q])
end) of
- {ok, SPid} -> rabbit_mirror_queue_slave:go(SPid);
+ {ok, SPid} -> rabbit_log:info("Adding mirror of ~s on node ~p: ~p~n",
+ [rabbit_misc:rs(Name), MirrorNode, SPid]),
+ rabbit_mirror_queue_slave:go(SPid);
_ -> ok
end.