Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
Revert "add log message for old client api response"
Browse files Browse the repository at this point in the history
This reverts commit cb2e177.
  • Loading branch information
jkvor committed Jun 17, 2011
1 parent cb2e177 commit eed9b6b
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/logplex_api.erl
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ handlers() ->
end},

{['GET', "/sessions/([\\w-]+)$"], fun(Req, [Session]) ->
proplists:get_value("srv", Req:parse_qs()) == undefined
andalso error_resp(400, <<"[Error]: Please update your Heroku client to the most recent version\n">>),
Body = logplex_session:lookup(list_to_binary("/sessions/" ++ Session)),
not is_binary(Body) andalso error_resp(404, <<"Not found">>),

Expand All @@ -165,14 +167,6 @@ handlers() ->
not is_binary(ChannelId0) andalso error_resp(400, <<"'channel_id' missing">>),
ChannelId = list_to_integer(binary_to_list(ChannelId0)),

case proplists:get_value("srv", Req:parse_qs()) of
undefined ->
io:format("Old client channel=~w~n", [ChannelId]),
error_resp(400, <<"[Error]: Please update your Heroku client to the most recent version\n">>);
_ ->
ok
end,

logplex_stats:incr(session_accessed),

Filters = filters(Data),
Expand Down

0 comments on commit eed9b6b

Please sign in to comment.