Skip to content

Commit

Permalink
journey end. remove logging
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT committed Oct 17, 2013
1 parent eeb9c31 commit a90eac7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
11 changes: 5 additions & 6 deletions src/endpoints/cowboy/n2o_bullet.erl
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ stream(<<"ping">>, Req, State) ->
wf:info("ping received~n"),
{reply, <<"pong">>, Req, State};
stream({text,Data}, Req, State) ->
% wf:info("Text Received ~p",[Data]),
% wf:info("Text Received ~p",[Data]),
self() ! Data,
{ok, Req,State};
stream({binary,Info}, Req, State) ->
wf:info("Binary Received: ~p",[Info]),
% wf:info("Binary Received: ~p",[Info]),
Pro = binary_to_term(Info,[safe]),
Pickled = proplists:get_value(pickle,Pro),
Linked = proplists:get_value(linked,Pro),
Depickled = wf:depickle(Pickled),
wf:info("Depickled: ~p",[Depickled]),
% wf:info("Depickled: ~p",[Depickled]),
case Depickled of
#ev{module=Module,name=Function,payload=Parameter,trigger=Trigger} ->
case Function of
Expand Down Expand Up @@ -58,7 +58,7 @@ stream(Data, Req, State) ->
info(Pro, Req, State) ->
Render = case Pro of
{flush,Actions} ->
error_logger:info_msg("Comet Actions: ~p",[Actions]),
% error_logger:info_msg("Comet Actions: ~p",[Actions]),
wf:render(Actions);
<<"N2O,",Rest/binary>> ->
Module = State#context.module, Module:event(init),
Expand Down Expand Up @@ -89,9 +89,8 @@ info(Pro, Req, State) ->
wf_context:clear_actions(),
RenderGenActions = wf:render(GenActions),
wf_context:clear_actions(),
wf:info("WS: ~p",[lists:flatten([Render,RenderGenActions])]),
{reply, [Render,RenderGenActions], Req, State}.

terminate(_Req, _State) ->
wf:info("Bullet Terminated~n"),
% wf:info("Bullet Terminated~n"),
ok.
1 change: 0 additions & 1 deletion src/wf.erl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ flush(Key) -> action_async:flush(Key).
% Redirect and purge connection wf:redirect

redirect(Url) ->
wf:info("rdrct"),
wf:wire(#jq{target=window,property=location,args=simple,right=["'",Url,"'"]}).

% Message Bus communications wf:reg wf:send
Expand Down

0 comments on commit a90eac7

Please sign in to comment.