aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_server/src
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2012-10-26 14:29:56 +0200
committerSiri Hansen <[email protected]>2012-11-14 14:02:20 +0100
commit3e52784d3c88050d695da1f2828df36c9a83d148 (patch)
treebcfeeec67a9c629670206ba5cfcb474a154bd6b7 /lib/test_server/src
parent55c2b0b6d55fe6a011671832b5529cb1c7b636a8 (diff)
downloadotp-3e52784d3c88050d695da1f2828df36c9a83d148.tar.gz
otp-3e52784d3c88050d695da1f2828df36c9a83d148.tar.bz2
otp-3e52784d3c88050d695da1f2828df36c9a83d148.zip
[test_server] Recognize and ignore info_reports for ct connections
test_server_h will now recognize info_reports written by ct connection handlers (according to the description in cth_conn_log) and ignore them as they will be completely handled by by ct_conn_log_h. Earlier test_server_h would print a tag (testcase name) before forwarding the report to error_logger_tty_h. This would cause lots of tags in the log with no info report following (since error_logger_tty_h did not handle them).
Diffstat (limited to 'lib/test_server/src')
-rw-r--r--lib/test_server/src/test_server_h.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/test_server/src/test_server_h.erl b/lib/test_server/src/test_server_h.erl
index fdeee59326..78daba855d 100644
--- a/lib/test_server/src/test_server_h.erl
+++ b/lib/test_server/src/test_server_h.erl
@@ -131,6 +131,11 @@ report_receiver(warning_msg, _) -> kernel;
report_receiver(warning_report, _) -> kernel;
report_receiver(info, _) -> kernel;
report_receiver(info_msg, _) -> kernel;
+report_receiver(info_report,Tuple)
+ when is_tuple(Tuple) andalso
+ (element(1,Tuple)==ct_connection orelse
+ element(1,Tuple)==conn_log) ->
+ none;
report_receiver(info_report, _) -> kernel;
report_receiver(_, _) -> none.