Permalink
Browse files

WHISTLE-1388: logging update

  • Loading branch information...
1 parent bd26e7f commit 5607e61ddd043665e5cc54a70c4ba670ed745666 @jamesaimonetti jamesaimonetti committed Jul 17, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 whistle_apps/apps/trunkstore/src/ts_from_onnet.erl
@@ -118,8 +118,9 @@ onnet_data(State) ->
send_park(State, Command)
catch
_A:_B ->
- lager:debug("Exception ~p:~p", [_A, _B]),
- lager:debug("Stacktrace: ~p", [erlang:get_stacktrace()]),
+ ST = erlang:get_stacktrace(),
+ lager:debug("exception ~p:~p", [_A, _B]),
+ _ = [lager:debug("st: ~p", [S]) || S <- ST],
wait_for_cdr(State)
end.

0 comments on commit 5607e61

Please sign in to comment.