Rename TRACE_SUP2 to TRACE_SUPERVISOR2 and add to Makefile

This commit is contained in:
Ayanda Dube 2022-08-28 22:41:54 +01:00
parent daf1a52e99
commit f10f81bf90
3 changed files with 6 additions and 2 deletions

View File

@ -256,6 +256,10 @@ ifdef DEBUG_FF
RMQ_ERLC_OPTS += -DDEBUG_QUORUM_QUEUE_FF=true RMQ_ERLC_OPTS += -DDEBUG_QUORUM_QUEUE_FF=true
endif endif
ifdef TRACE_SUPERVISOR2
RMQ_ERLC_OPTS += -DTRACE_SUPERVISOR2=true
endif
ifndef USE_PROPER_QC ifndef USE_PROPER_QC
# PropEr needs to be installed for property checking # PropEr needs to be installed for property checking
# http://proper.softlab.ntua.gr/ # http://proper.softlab.ntua.gr/

View File

@ -81,7 +81,7 @@
-include_lib("kernel/include/logger.hrl"). -include_lib("kernel/include/logger.hrl").
-ifdef(TRACE_SUP2). -ifdef(TRACE_SUPERVISOR2).
-define(TRACE_SUPERVISOR2_ERROR_LOG(ERROR, CHILD, SUP_NAME, LOGGED), -define(TRACE_SUPERVISOR2_ERROR_LOG(ERROR, CHILD, SUP_NAME, LOGGED),
rabbit_event:notify(supervisor2_error_report, rabbit_event:notify(supervisor2_error_report,
[{supervisor, SUP_NAME}, [{supervisor, SUP_NAME},

View File

@ -95,7 +95,7 @@ test_supervisor_delayed_restart(SupPid) ->
ok = ping_child(SupPid), ok = ping_child(SupPid),
passed. passed.
-ifdef(TRACE_SUP2). -ifdef(TRACE_SUPERVISOR2).
test_supervisor_ignore_error_reports(SupPid, IsLogged = false) -> test_supervisor_ignore_error_reports(SupPid, IsLogged = false) ->
ok = ping_child(SupPid), ok = ping_child(SupPid),