Skip to content

Commit

Permalink
Send newline after data
Browse files Browse the repository at this point in the history
  • Loading branch information
mworrell committed Jul 15, 2024
1 parent 4b9d793 commit 117f71f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/logstasher.erl
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,6 @@ send(Data, #{transport := console}) ->
send(_Data, #{socket := undefined}) ->
{error, closed};
send(Data, #{transport := tcp, socket := Socket}) ->
gen_tcp:send(Socket, Data);
gen_tcp:send(Socket, [ Data, "\n" ]);
send(Data, #{transport := udp, socket := Socket, host := Host, port := Port}) ->
gen_udp:send(Socket, Host, Port, Data).
gen_udp:send(Socket, Host, Port, [ Data, "\n" ]).

0 comments on commit 117f71f

Please sign in to comment.