From: Christopher Date: Tue, 17 Mar 2020 19:59:39 +0000 (-0500) Subject: adds some logging around rpc calls X-Git-Url: http://git.entropealabs.com/?a=commitdiff_plain;h=24d525d33e72da54aceca4fb39913358b9a4df4a;p=wampex_client.git adds some logging around rpc calls --- diff --git a/lib/router/session.ex b/lib/router/session.ex index d290095..0cd1023 100644 --- a/lib/router/session.ex +++ b/lib/router/session.ex @@ -482,6 +482,8 @@ defmodule Wampex.Router.Session do %SL{data: %Sess{proxy: proxy, invocations: inv, yield: {:yield, id, dets, arg_l, arg_kw}}} = data ) do + Logger.info("Handling yield #{id} - #{inspect(arg_kw)}") + case Enum.find(inv, fn {_, %Invocation{request_id: ^id}, _} -> true _ -> false @@ -493,6 +495,7 @@ defmodule Wampex.Router.Session do ) nil -> + Logger.error("No invocation for #{id} #{inspect(arg_kw)}") :noop end @@ -553,6 +556,7 @@ defmodule Wampex.Router.Session do @impl true def handle_info(%Result{} = e, _, %SL{data: %Sess{transport: tt, transport_pid: t}} = data) do + Logger.info("Handling Result #{inspect(e)}") send_to_peer(Dealer.result(e), tt, t) {:ok, data, []} end