Skip to content

Commit

Permalink
[NSERV-2043] Log channel ID to facilitate debug when channel is deleted.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tao Zhang committed Jan 30, 2015
1 parent 5bfa791 commit e6845aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/jn_component/src/jn_schedule.erl
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ check_relay(#relay{pid= PID, user=U, id=ID, creationTime=CT}, Timeout) ->
Used = trunc(max(UsedL, UsedR)/1000000),
if
DeltaL > Timeout orelse DeltaR > Timeout ->
?INFO_MSG("Channel Killed: ~p Used for:~ps Processed:~p packets~n", [U, Used, NP]),
?INFO_MSG("Channel ~p Killed: ~p Used for:~ps Processed:~p packets~n", [ID, U, Used, NP]),
gen_server:cast(PID, stop),
gen_server:cast(jn_component, {notify_channel, ID, U, killed, Used}),
false;
Expand Down

0 comments on commit e6845aa

Please sign in to comment.