]> Entropealabs - wampex_client.git/commitdiff
adds some logging around rpc calls
authorChristopher <chris@entropealabs.com>
Tue, 17 Mar 2020 19:59:39 +0000 (14:59 -0500)
committerChristopher <chris@entropealabs.com>
Tue, 17 Mar 2020 19:59:39 +0000 (14:59 -0500)
lib/router/session.ex

index d290095c4419d6bd430a895907b8453dd845e725..0cd1023353e03d26858c1bfb9629fd7545d8bf48 100644 (file)
@@ -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