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

Commit

Permalink
include drain token in drain info API response
Browse files Browse the repository at this point in the history
  • Loading branch information
jkvor committed Mar 5, 2012
1 parent d1eb9b4 commit 68231e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/logplex_api.erl
Expand Up @@ -297,7 +297,7 @@ handlers() ->
Drains = logplex_channel:lookup_drains(list_to_integer(ChannelId)),
not is_list(Drains) andalso exit({expected_list, Drains}),

Drains1 = [{struct, [{host, Host}, {port, Port}]} || #drain{host=Host, port=Port} <- Drains],
Drains1 = [{struct, [{token, Token}, {host, Host}, {port, Port}]} || #drain{token=Token, host=Host, port=Port} <- Drains],
{200, iolist_to_binary(mochijson2:encode(Drains1))}
end},

Expand Down

0 comments on commit 68231e7

Please sign in to comment.