Commit cd7749d8 authored by Daniel Henninger's avatar Daniel Henninger Committed by dhenninger

Added date stamp to http bind debug.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10568 b35dd754-fafc-0310-a699-88a17e54d16e
parent c870e78f
...@@ -36,6 +36,7 @@ import java.io.InputStream; ...@@ -36,6 +36,7 @@ import java.io.InputStream;
import java.net.InetAddress; import java.net.InetAddress;
import java.net.URLDecoder; import java.net.URLDecoder;
import java.security.cert.X509Certificate; import java.security.cert.X509Certificate;
import java.util.Date;
/** /**
* Servlet which handles requests to the HTTP binding service. It determines if there is currently * Servlet which handles requests to the HTTP binding service. It determines if there is currently
...@@ -137,7 +138,7 @@ public class HttpBindServlet extends HttpServlet { ...@@ -137,7 +138,7 @@ public class HttpBindServlet extends HttpServlet {
} }
if (JiveGlobals.getBooleanProperty("log.httpbind.enabled", false)) { if (JiveGlobals.getBooleanProperty("log.httpbind.enabled", false)) {
System.out.println("HTTP RECV: " + document.asXML()); System.out.println(new Date()+": HTTP RECV: " + document.asXML());
} }
Element node = document.getRootElement(); Element node = document.getRootElement();
if (node == null || !"body".equals(node.getName())) { if (node == null || !"body".equals(node.getName())) {
...@@ -309,7 +310,7 @@ public class HttpBindServlet extends HttpServlet { ...@@ -309,7 +310,7 @@ public class HttpBindServlet extends HttpServlet {
} }
if (JiveGlobals.getBooleanProperty("log.httpbind.enabled", false)) { if (JiveGlobals.getBooleanProperty("log.httpbind.enabled", false)) {
System.out.println("HTTP SENT: " + content); System.out.println(new Date()+": HTTP SENT: " + content);
} }
byte[] byteContent = content.getBytes("utf-8"); byte[] byteContent = content.getBytes("utf-8");
response.setContentLength(byteContent.length); response.setContentLength(byteContent.length);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment