Add debugging macros

This commit is contained in:
Alexey Romanov
2010-10-20 18:05:26 +04:00
parent 8545a74c7e
commit ce7e326391
2 changed files with 15 additions and 2 deletions

View File

@@ -629,11 +629,11 @@ wait_result(Port) ->
receive
%% Messages given at http://www.erlang.org/doc/reference_manual/ports.html
{Port, Reply} ->
% io:format("Reply: ~p~n", [Reply]),
% ?debugFmt("Reply: ~p~n", [Reply]),
Reply;
{'EXIT', Port, Reason} ->
error_logger:error_msg("sqlite3 driver port closed with reason~p~n", [Reason]),
% io:format("Error: ~p~n", [Reason]),
?debugFmt("Error: ~p~n", [Reason]),
{error, Reason}
%% ;
%% _Else ->