aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Strollo <[email protected]strollo.org>2020-11-21 00:28:24 +0100
committerLoïc Hoguin <[email protected]>2020-11-27 16:02:54 +0100
commit63a6b86fbae1190ba78dceb196588fdcae50e17a (patch)
tree9b4e4464039f087e4ebb96c93bf8f023cae6d519
parentf6049b85a3f55da7edd47a84ec1919a62a881aec (diff)
downloadcowboy-63a6b86fbae1190ba78dceb196588fdcae50e17a.tar.gz
cowboy-63a6b86fbae1190ba78dceb196588fdcae50e17a.tar.bz2
cowboy-63a6b86fbae1190ba78dceb196588fdcae50e17a.zip
Also include trace messages when timestamp flag isn't used
-rw-r--r--src/cowboy_tracer_h.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_tracer_h.erl b/src/cowboy_tracer_h.erl
index 750ff03..9a19ae1 100644
--- a/src/cowboy_tracer_h.erl
+++ b/src/cowboy_tracer_h.erl
@@ -159,7 +159,7 @@ tracer_process(StreamID, Req=#{pid := Parent}, Opts=#{tracer_callback := Fun}) -
tracer_loop(Parent, Opts=#{tracer_callback := Fun}, State0) ->
receive
- Msg when element(1, Msg) =:= trace_ts ->
+ Msg when element(1, Msg) =:= trace; element(1, Msg) =:= trace_ts ->
State = Fun(Msg, State0),
tracer_loop(Parent, Opts, State);
{'EXIT', Parent, Reason} ->