diff options
author | Richard Carlsson <[email protected]> | 2015-04-28 15:22:36 +0200 |
---|---|---|
committer | Richard Carlsson <[email protected]> | 2015-04-28 15:31:41 +0200 |
commit | bca6864c181eb8c14a0b8e47afb3dd6206e6ae7c (patch) | |
tree | 72a44e2363184aa911666438e20f31b42e3dc322 /lib/xmerl/src/xmerl_eventp.erl | |
parent | 861145a503c77d8144033f38d288bdda31699edd (diff) | |
download | otp-bca6864c181eb8c14a0b8e47afb3dd6206e6ae7c.tar.gz otp-bca6864c181eb8c14a0b8e47afb3dd6206e6ae7c.tar.bz2 otp-bca6864c181eb8c14a0b8e47afb3dd6206e6ae7c.zip |
Stop xmerl printing to stdout
Replace sloppy calls to io:format() in xmerl to use error_logger or debug
macros instead, as appropriate.
Diffstat (limited to 'lib/xmerl/src/xmerl_eventp.erl')
-rw-r--r-- | lib/xmerl/src/xmerl_eventp.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/xmerl/src/xmerl_eventp.erl b/lib/xmerl/src/xmerl_eventp.erl index ad5c3cbc47..beeab3fa5c 100644 --- a/lib/xmerl/src/xmerl_eventp.erl +++ b/lib/xmerl/src/xmerl_eventp.erl @@ -80,17 +80,17 @@ stream_sax(Fname, CallBack, UserState,Options) -> HookF= fun(ParsedEntity, S) -> {CBs,Arg}=xmerl_scan:user_state(S), -% io:format("stream_sax Arg=~p~n",[Arg]), +% ?dbg("stream_sax Arg=~p~n",[Arg]), case ParsedEntity of #xmlComment{} -> % Toss away comments... {[],S}; _ -> % Use callback module for the rest -% io:format("stream_sax ParsedEntity=~p~n",[ParsedEntity]), +% ?dbg("stream_sax ParsedEntity=~p~n",[ParsedEntity]), case xmerl:export_element(ParsedEntity,CBs,Arg) of {error,Reason} -> throw({error,Reason}); Resp -> -% io:format("stream_sax Resp=~p~n",[Resp]), +% ?dbg("stream_sax Resp=~p~n",[Resp]), {Resp,xmerl_scan:user_state({CBs,Resp},S)} end end |