summaryrefslogtreecommitdiff
path: root/deps/rabbitmq_tracing
diff options
context:
space:
mode:
authorMichael Klishin <michael@clojurewerkz.org>2021-03-11 16:45:32 +0300
committerJean-Sébastien Pédron <jean-sebastien.pedron@dumbbell.fr>2021-03-11 15:17:37 +0100
commit97ff62d3b24c92ee6850c1935a8e36dae9d01856 (patch)
tree5ab1ed9836d887325fa4c875aa5ef14f4ff2c531 /deps/rabbitmq_tracing
parentb67c030953588dd7fb19c092cd1c8b382449ffbe (diff)
downloadrabbitmq-server-git-97ff62d3b24c92ee6850c1935a8e36dae9d01856.tar.gz
Drop trailing newlines from logged messages where possible
Lager strips trailing newline characters but OTP logger with the default formatter adds a newline at the end. To avoid unintentional multi-line log messages we have to revisit most messages logged. Some log entries are intentionally multiline, others are printed to stdout directly: newlines are required there for sensible formatting.
Diffstat (limited to 'deps/rabbitmq_tracing')
-rw-r--r--deps/rabbitmq_tracing/src/rabbit_tracing_consumer.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/deps/rabbitmq_tracing/src/rabbit_tracing_consumer.erl b/deps/rabbitmq_tracing/src/rabbit_tracing_consumer.erl
index 6bec51de57..7ebe4d0a7a 100644
--- a/deps/rabbitmq_tracing/src/rabbit_tracing_consumer.erl
+++ b/deps/rabbitmq_tracing/src/rabbit_tracing_consumer.erl
@@ -76,7 +76,7 @@ init(Args0) ->
rabbit_tracing_traces:announce(VHost, Name, self()),
Format = list_to_atom(binary_to_list(pget(format, Args))),
rabbit_log:info("Tracer opened log file ~p with "
- "format ~p~n", [Filename, Format]),
+ "format ~p", [Filename, Format]),
{ok, #state{conn = Conn, ch = Ch, vhost = VHost, queue = Q,
file = F, filename = Filename,
format = Format, buf = [], buf_cnt = 0,
@@ -119,7 +119,7 @@ terminate(shutdown, State = #state{conn = Conn, ch = Ch,
catch amqp_channel:close(Ch),
catch amqp_connection:close(Conn),
catch prim_file:close(F),
- rabbit_log:info("Tracer closed log file ~p~n", [Filename]),
+ rabbit_log:info("Tracer closed log file ~p", [Filename]),
ok;
terminate(_Reason, _State) ->