Permalink
Browse files

WHISTLE-1441: set log call id in queue manager

  • Loading branch information...
1 parent c3de9a3 commit d4c86dc615779bdc21fd749a87be1b09ab3343c4 James Aimonetti committed Dec 6, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 whistle_apps/apps/acdc/src/acdc_queue_manager.erl
@@ -179,6 +179,8 @@ pick_winner(Srv, Resps) ->
%% @end
%%--------------------------------------------------------------------
init([Super, AcctId, QueueId]) ->
+ put(callid, <<"mgr_", QueueId/binary>>),
+
_ = start_secondary_queue(AcctId, QueueId),
AcctDb = wh_util:format_account_id(AcctId, encoded),
@@ -187,6 +189,7 @@ init([Super, AcctId, QueueId]) ->
gen_listener:cast(self(), {start_workers}),
Strategy = get_strategy(wh_json:get_value(<<"strategy">>, QueueJObj)),
+ lager:debug("queue mgr started"),
{ok, #state{
acct_id=AcctId
,queue_id=QueueId

0 comments on commit d4c86dc

Please sign in to comment.