From 90df6552568bb30165d999af0657b512d8ca26da Mon Sep 17 00:00:00 2001 From: Scott Lystig Fritchie Date: Tue, 14 Apr 2015 16:32:47 +0900 Subject: [PATCH] WIP: Ha! There's a bug, this verbose logging change made it easier to see --- src/machi_chain_manager1.erl | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/machi_chain_manager1.erl b/src/machi_chain_manager1.erl index b27c974..c6f8f3b 100644 --- a/src/machi_chain_manager1.erl +++ b/src/machi_chain_manager1.erl @@ -1059,16 +1059,15 @@ react_to_env_C110(P_latest, #ch_mgr{name=MyName} = S) -> {HH,MM,SS} = time(), case inner_projection_exists(P_latest2) of false -> - ok; + io:format(user, "\n~2..0w:~2..0w:~2..0w.~3..0w ~p uses plain: ~w\n", + [HH,MM,SS,MSec, S#ch_mgr.name, + machi_projection:make_summary(P_latest2)]); true -> P_inner = inner_projection_or_self(P_latest2), - io:format(user, "\n~2..0w:~2..0w:~2..0w.~3..0w ~p uses INNER: ~w\n", + io:format(user, "\n~2..0w:~2..0w:~2..0w.~3..0w ~p uses inner: ~w\n", [HH,MM,SS,MSec, S#ch_mgr.name, machi_projection:make_summary(P_inner)]) - end, - io:format(user, "\n~2..0w:~2..0w:~2..0w.~3..0w ~p uses: ~w\n", - [HH,MM,SS,MSec, S#ch_mgr.name, - machi_projection:make_summary(P_latest2)]); + end; _ -> ok end,