From: megacz Date: Fri, 30 Jan 2004 06:49:51 +0000 (+0000) Subject: 2002/08/07 05:03:49 X-Git-Tag: RC3~1579 X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=commitdiff_plain;h=78fe92d1a18e04584c782ea75e69e3e1c8fbbce7 2002/08/07 05:03:49 darcs-hash:20040130064951-2ba56-64864e37d0dc9f88b33c20261c7abf83bb9d1a55.gz --- diff --git a/src/org/xwt/XMLRPC.java b/src/org/xwt/XMLRPC.java index d70dd7c..6b95b4d 100644 --- a/src/org/xwt/XMLRPC.java +++ b/src/org/xwt/XMLRPC.java @@ -290,7 +290,11 @@ class XMLRPC extends XML implements Function { else objects.setSize(0); String content = send(args, http); - if (Log.verbose) Log.log(this, "send: " + content); + if (Log.verbose) { + String s; + BufferedReader br2 = new BufferedReader(new StringReader(content)); + while ((s = br2.readLine()) != null) Log.log(this, "send: " + s); + } HTTP.HTTPInputStream is = http.POST("text/xml", content); try { @@ -307,7 +311,7 @@ class XMLRPC extends XML implements Function { if (ret == -1) return ret; String s; BufferedReader br2 = new BufferedReader(new StringReader(new String(c, off, ret))); - while ((s = br2.readLine()) != null) if (Log.on) Log.log(this, "recv: " + s); + while ((s = br2.readLine()) != null) Log.log(this, "recv: " + s); return ret; } });