1
0
mirror of https://github.com/moparisthebest/davmail synced 2025-02-28 09:21:49 -05:00

Caldav: Move wire debug log with headers

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@606 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2009-06-29 20:14:08 +00:00
parent af048577cc
commit d4ffe34bee

View File

@ -78,7 +78,11 @@ public class CaldavConnection extends AbstractConnection {
builder.append(buffer, 0, actualSize);
}
return builder.toString();
String content = builder.toString();
if (wireLogger.isDebugEnabled()) {
wireLogger.debug("< " + content);
}
return content;
}
}
@ -164,10 +168,6 @@ public class CaldavConnection extends AbstractConnection {
public void handleRequest(String command, String path, Map<String, String> headers, String body) throws IOException {
CaldavRequest request = new CaldavRequest(command, path, headers, body);
// full debug trace
if (wireLogger.isDebugEnabled()) {
wireLogger.debug("Caldav command: " + request.toString());
}
if (request.isOptions()) {
sendOptions();
} else if (request.isPropFind() && request.isRoot()) {