Skip to content

Commit

Permalink
added io:format debug lines (commented out)
Browse files Browse the repository at this point in the history
  • Loading branch information
jj1bdx committed Mar 21, 2010
1 parent b06b82f commit e4dcad5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sshrpc_client.erl
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ do_handle_call({mfa, {M, F, A}}, From, #state{
cm = ConnectionManager,
channel = ChannelId} = State) ->
send_command(ConnectionManager, ChannelId, {mfa, {M, F, A}}),
%% io:format("do_handle_called with mfa called From = ~p~n", [From]),
{noreply, State#state{from = From}}.

%%--------------------------------------------------------------------
Expand Down Expand Up @@ -265,7 +266,7 @@ open_subsystem(CM, Opts) ->

call(Pid, Msg, TimeOut) ->
ssh_channel:call(Pid, {{timeout, TimeOut}, Msg}, infinity).

send_command(Pid, ChannelId, Cmd) ->
Bin = term_to_binary(Cmd),
Len = size(Bin),
Expand All @@ -284,6 +285,7 @@ handle_reply(State, Data) ->

do_handle_reply(#state{from = From} = State, Reply, Rest) ->
Msg = binary_to_term(Reply),
%% io:format("ssh_channel:reply called with [From, Msg] = [~p, ~p]~n", [From, Msg]),
ssh_channel:reply(From, Msg),
handle_reply(State, Rest).

Expand Down

0 comments on commit e4dcad5

Please sign in to comment.