Permalink
Browse files

WHISTLE-824: this is redundant, if it fails it throws and will be in …

…the SASL log, if it succeeds then we get the publish log line
  • Loading branch information...
1 parent 77c8c4c commit dc53588a282a64977d070e7777df28d05a777b30 @k-anderson k-anderson committed Feb 3, 2012
Showing with 0 additions and 4 deletions.
  1. +0 −4 lib/whistle-1.0.0/src/api/wapi_dialplan.erl
@@ -59,8 +59,6 @@ v(JObj) ->
v(Prop, DPApp) ->
try
VFun = wh_util:to_atom(<<DPApp/binary, "_v">>),
- ?LOG("vfun: ~s", [VFun]),
- ?LOG("keyfind: ~p", [lists:keyfind(VFun, 1, ?MODULE:module_info(exports))]),
case lists:keyfind(VFun, 1, ?MODULE:module_info(exports)) of
false -> throw({invalid_dialplan_object, Prop});
{_, 1} -> ?MODULE:VFun(Prop)
@@ -693,8 +691,6 @@ publish_command(CtrlQ, JObj) ->
publish_command(CtrlQ, Prop, DPApp) ->
try
BuildMsgFun = wh_util:to_atom(<<DPApp/binary>>),
- ?LOG("vfun: ~s", [BuildMsgFun]),
- ?LOG("keyfind: ~p", [lists:keyfind(BuildMsgFun, 1, ?MODULE:module_info(exports))]),
case lists:keyfind(BuildMsgFun, 1, ?MODULE:module_info(exports)) of
false -> throw({invalid_dialplan_object, Prop});
{_, 1} ->

0 comments on commit dc53588

Please sign in to comment.