aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src/ct_framework.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2013-04-16 14:51:17 +0200
committerSiri Hansen <[email protected]>2013-04-16 14:51:17 +0200
commita0f5a03771e50e1f4a0722373e8823fc72aa5991 (patch)
tree4fcc987fb710af9911e47e51f61a26acaf84a968 /lib/common_test/src/ct_framework.erl
parent74fdfd48d59393b6f0dfb53f343645133675c64b (diff)
downloadotp-a0f5a03771e50e1f4a0722373e8823fc72aa5991.tar.gz
otp-a0f5a03771e50e1f4a0722373e8823fc72aa5991.tar.bz2
otp-a0f5a03771e50e1f4a0722373e8823fc72aa5991.zip
[common_test] Use max importance when logging errors
This commit adds ?MAX_IMPORTANCE to error notifications in the test case log, and it makes sure that the printout says "CT Error Notification". Printouts from cth_log_redirect (sasl and error_reports) uses ?STD_IMPORTANCE and states "System" in the printout.
Diffstat (limited to 'lib/common_test/src/ct_framework.erl')
-rw-r--r--lib/common_test/src/ct_framework.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/common_test/src/ct_framework.erl b/lib/common_test/src/ct_framework.erl
index b92fe1555f..3cbcccaf42 100644
--- a/lib/common_test/src/ct_framework.erl
+++ b/lib/common_test/src/ct_framework.erl
@@ -32,6 +32,7 @@
-export([error_in_suite/1, init_per_suite/1, end_per_suite/1,
init_per_group/2, end_per_group/2]).
+-include("ct.hrl").
-include("ct_event.hrl").
-include("ct_util.hrl").
@@ -806,7 +807,9 @@ error_notification(Mod,Func,_Args,{Error,Loc}) ->
"- - - - - - - - - -~n",
io:format(user, lists:concat([Div,ErrFormat,Div,"~n"]),
ErrArgs),
- ct_logs:tc_log(ct_error_notify, "CT Error Notification",
+ ct_logs:tc_log(ct_error_notify,
+ ?MAX_IMPORTANCE,
+ "CT Error Notification",
ErrFormat, ErrArgs)
end,
case Loc of