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:
parent
af048577cc
commit
d4ffe34bee
@ -78,7 +78,11 @@ public class CaldavConnection extends AbstractConnection {
|
|||||||
builder.append(buffer, 0, actualSize);
|
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 {
|
public void handleRequest(String command, String path, Map<String, String> headers, String body) throws IOException {
|
||||||
CaldavRequest request = new CaldavRequest(command, path, headers, body);
|
CaldavRequest request = new CaldavRequest(command, path, headers, body);
|
||||||
// full debug trace
|
|
||||||
if (wireLogger.isDebugEnabled()) {
|
|
||||||
wireLogger.debug("Caldav command: " + request.toString());
|
|
||||||
}
|
|
||||||
if (request.isOptions()) {
|
if (request.isOptions()) {
|
||||||
sendOptions();
|
sendOptions();
|
||||||
} else if (request.isPropFind() && request.isRoot()) {
|
} else if (request.isPropFind() && request.isRoot()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user