From c2773f018b6e3d6f5f906beb92b57e499dccd7bb Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 29 Jan 2012 23:23:24 +0100 Subject: [PATCH] enable gen_fsm debug tracing for TSM and DHA for the tiem being --- TCAP/src/tcap_dialogue_sup.erl | 4 ++-- TCAP/src/tcap_transaction_sup.erl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/TCAP/src/tcap_dialogue_sup.erl b/TCAP/src/tcap_dialogue_sup.erl index 7db7a6b..f8e3087 100644 --- a/TCAP/src/tcap_dialogue_sup.erl +++ b/TCAP/src/tcap_dialogue_sup.erl @@ -60,7 +60,7 @@ gen_comp_sup_spec(USAP, DialogueID) -> %% when started from TCO init({USAP, LocalTID, TCO, SupId}) -> StartName = list_to_atom("tcap_dha_" ++ integer_to_list(LocalTID)), - StartArgs = [{local, StartName}, tcap_dha_fsm, [{USAP, LocalTID, TCO, SupId}], []], + StartArgs = [{local, StartName}, tcap_dha_fsm, [{USAP, LocalTID, TCO, SupId}], [{debug,[trace]}]], StartFunc = {gen_fsm, start_link, StartArgs}, ChildSpecComp = gen_comp_sup_spec(USAP, LocalTID), ChildSpec = {dha, StartFunc, permanent, 4000, worker, @@ -70,7 +70,7 @@ init({USAP, LocalTID, TCO, SupId}) -> %% when started from TSM init({USAP, LocalTID, TCO}) -> StartName = list_to_atom("tcap_dha_" ++ integer_to_list(LocalTID)), - StartArgs = [{local, StartName}, tcap_dha_fsm, {USAP, LocalTID, TCO}, []], + StartArgs = [{local, StartName}, tcap_dha_fsm, {USAP, LocalTID, TCO}, [{debug,[trace]}]], StartFunc = {gen_fsm, start_link, StartArgs}, ChildSpecComp = gen_comp_sup_spec(USAP, LocalTID), ChildSpec = {dha, StartFunc, permanent, 4000, worker, diff --git a/TCAP/src/tcap_transaction_sup.erl b/TCAP/src/tcap_transaction_sup.erl index 873f5e4..f24a537 100644 --- a/TCAP/src/tcap_transaction_sup.erl +++ b/TCAP/src/tcap_transaction_sup.erl @@ -49,7 +49,7 @@ gen_tsm_childspec(NSAP, USAP, TID, TCO) -> Name = list_to_atom("tcap_tsm_" ++ integer_to_list(TID)), - StartArgs = [{local, Name}, tcap_tsm_fsm, [NSAP, USAP, TID, self(), TCO], []], + StartArgs = [{local, Name}, tcap_tsm_fsm, [NSAP, USAP, TID, self(), TCO], [{debug, [trace]}]], StartFunc = {gen_fsm, start_link, StartArgs}, {Name, StartFunc, permanent, 1000, worker, [tcap_tsm_fsm]}.