anchor.diff:                  {ok, undefined, _} -> Req:response({401, [], []});
                   {ok, _, undefined} -> Req:response({401, [], []});
                   {ok, OtpNode, OtpCookie} ->
  -                    case ns_cluster:join(
  -                           list_to_atom(binary_to_list(OtpNode)),
  -                           list_to_atom(binary_to_list(OtpCookie))) of
  -                        ok -> Req:respond({200, [], []});
  +                    AOtpNode = list_to_atom(binary_to_list(OtpNode)),
  +                    AOtpCookie = list_to_atom(binary_to_list(OtpCookie)),
  +                    case ns_cluster:join(AOtpNode, AOtpCookie) of
  +                        ok -> ns_log:log(?MODULE, 0009, "Joined cluster at node: ~p with cookie: ~p from node: ~p",
  +                                         [AOtpNode, AOtpCookie, erlang:node()]),
  +                              Req:respond({200, [], []});
                           _  -> Req:respond({401, [], []})
                       end;
                   _ -> Req:response({401, [], []})
  
positive.code:     end.
  
  handle_bucket_flush(PoolId, Id, Req) ->
      ns_log:log(?MODULE, 100, "Flushing pool ~p bucket ~p from node ~p",
                 [PoolId, Id, erlang:node()]),
      case mc_bucket:bucket_flush(PoolId, Id) of
          ok    -> Req:respond({204, [], []});
  
negative.code:                          ["pools", PoolId, "buckets", Id] ->
                               {auth, fun handle_bucket_update/3, [PoolId, Id]};
                           _ ->
                               ns_log:log(?MODULE, 0003, "Invalid put received: ~p", Req),
                               {done, Req:respond({405, [], "Method Not Allowed"})}
                       end;
                   _ ->
                       ns_log:log(?MODULE, 0004, "Invalid request received: ~p", Req),
                       {done, Req:respond({405, [], "Method Not Allowed"})}
               end,
      case Action of
  