aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2018-06-28 14:47:56 +0200
committerSiri Hansen <[email protected]>2018-07-13 12:20:26 +0200
commitc606b5659908618a4e54a1ac7af90f8f4e78c2c8 (patch)
tree904c70296005072783a667167331041d0a5a4f63 /lib
parentd4789fa6f6795252f9eecec8c4b7e0ec4c7f86ec (diff)
downloadotp-c606b5659908618a4e54a1ac7af90f8f4e78c2c8.tar.gz
otp-c606b5659908618a4e54a1ac7af90f8f4e78c2c8.tar.bz2
otp-c606b5659908618a4e54a1ac7af90f8f4e78c2c8.zip
Don't call report_cb from cth_log_redirect - formatter does that
Diffstat (limited to 'lib')
-rw-r--r--lib/common_test/src/cth_log_redirect.erl13
1 files changed, 2 insertions, 11 deletions
diff --git a/lib/common_test/src/cth_log_redirect.erl b/lib/common_test/src/cth_log_redirect.erl
index 99c484de48..4980d1ee4b 100644
--- a/lib/common_test/src/cth_log_redirect.erl
+++ b/lib/common_test/src/cth_log_redirect.erl
@@ -184,21 +184,12 @@ handle_call({log,#{meta:=#{gl:=GL}},_}, _From,
{reply, ok, State};
handle_call({log,
- #{msg:=Msg0,
- meta:=#{?MODULE:=#{category:=Category}}=Meta}=Log,
+ #{meta:=#{?MODULE:=#{category:=Category}}}=Log,
#{formatter:={Formatter,FConfig}}},
_From,
#eh_state{log_func=LogFunc}=State) ->
Header = format_header(State),
- Msg =
- case Msg0 of
- {report,R} ->
- Fun=maps:get(report_cb,Meta,fun logger:format_report/1),
- Fun(R);
- _ ->
- Msg0
- end,
- String = Formatter:format(Log#{msg=>Msg},FConfig),
+ String = Formatter:format(Log,FConfig),
case LogFunc of
tc_log ->
ct_logs:tc_log(Category, ?STD_IMPORTANCE,