aboutsummaryrefslogtreecommitdiffstats
path: root/lib/xmerl/src/xmerl_xml.erl
diff options
context:
space:
mode:
authorRichard Carlsson <[email protected]>2015-04-28 15:22:36 +0200
committerRichard Carlsson <[email protected]>2015-04-28 15:31:41 +0200
commitbca6864c181eb8c14a0b8e47afb3dd6206e6ae7c (patch)
tree72a44e2363184aa911666438e20f31b42e3dc322 /lib/xmerl/src/xmerl_xml.erl
parent861145a503c77d8144033f38d288bdda31699edd (diff)
downloadotp-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_xml.erl')
-rw-r--r--lib/xmerl/src/xmerl_xml.erl7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/xmerl/src/xmerl_xml.erl b/lib/xmerl/src/xmerl_xml.erl
index 702a654629..3354592cf1 100644
--- a/lib/xmerl/src/xmerl_xml.erl
+++ b/lib/xmerl/src/xmerl_xml.erl
@@ -31,6 +31,7 @@
-import(xmerl_lib, [markup/3, empty_tag/2, export_text/1]).
-include("xmerl.hrl").
+-include("xmerl_internal.hrl").
'#xml-inheritance#'() -> [].
@@ -39,7 +40,7 @@
%% The '#text#' function is called for every text segment.
'#text#'(Text) ->
-%io:format("Text=~p~n",[Text]),
+%?dbg("Text=~p~n",[Text]),
export_text(Text).
@@ -55,8 +56,8 @@
%% The '#element#' function is the default handler for XML elements.
'#element#'(Tag, [], Attrs, _Parents, _E) ->
-%io:format("Empty Tag=~p~n",[Tag]),
+%?dbg("Empty Tag=~p~n",[Tag]),
empty_tag(Tag, Attrs);
'#element#'(Tag, Data, Attrs, _Parents, _E) ->
-%io:format("Tag=~p~n",[Tag]),
+%?dbg("Tag=~p~n",[Tag]),
markup(Tag, Attrs, Data).