aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gun.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gun.erl b/src/gun.erl
index 1f72555..8cf5a50 100644
--- a/src/gun.erl
+++ b/src/gun.erl
@@ -477,7 +477,7 @@ check_protocols_opt(Protocols) ->
end.
consider_tracing(ServerPid, #{trace := true}) ->
- dbg:tracer(),
+ _ = dbg:tracer(),
_ = dbg:tpl(gun, [{'_', [], [{return_trace}]}]),
_ = dbg:tpl(gun_http, [{'_', [], [{return_trace}]}]),
_ = dbg:tpl(gun_http2, [{'_', [], [{return_trace}]}]),
@@ -485,7 +485,8 @@ consider_tracing(ServerPid, #{trace := true}) ->
_ = dbg:tpl(gun_raw, [{'_', [], [{return_trace}]}]),
_ = dbg:tpl(gun_socks, [{'_', [], [{return_trace}]}]),
_ = dbg:tpl(gun_ws, [{'_', [], [{return_trace}]}]),
- dbg:p(ServerPid, all);
+ _ = dbg:p(ServerPid, all),
+ ok;
consider_tracing(_, _) ->
ok.