Skip to content

Commit 79954db

Browse files
committed
Add more logging to the flaky test
1 parent 28ea834 commit 79954db

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

big_tests/tests/sm_SUITE.erl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,13 +1609,18 @@ rpc_stop_filter_hook_handler(HookExtra, HostType) ->
16091609
HookExtra, 50).
16101610

16111611
filter_hook_handler_fn(Buffer,
1612-
#{jid := Jid} = _Params,
1613-
#{luser := LUser, filter_text := FilterText} = _Extra) ->
1612+
#{jid := Jid} = Params,
1613+
#{luser := LUser, filter_text := FilterText} = Extra) ->
1614+
logger:warning("Filter params ~p, extra ~p", [Params, Extra]),
16141615
{U, _} = jid:to_lus(Jid),
16151616
case U of
16161617
LUser ->
16171618
F = fun(Acc) -> filter_text(Acc, FilterText) end,
16181619
NewBuffer = lists:filter(F, Buffer),
1620+
case NewBuffer of
1621+
Buffer -> ok;
1622+
_ -> logger:warning("Filtered ~p -> ~p", [Buffer, NewBuffer])
1623+
end,
16191624
{ok, NewBuffer};
16201625
_ -> {ok, Buffer}
16211626
end.

0 commit comments

Comments
 (0)