Commit ef46b208 authored by vince-bourgmayer's avatar vince-bourgmayer
Browse files

remove log

parent 85a86e7f
......@@ -92,18 +92,15 @@ public class CreateFolderRemoteOperation extends RemoteOperation {
try {
mkCol = new MkColMethod(client.getWebdavUri() + WebdavUtils.encodePath(mRemotePath));
client.setUseNextcloudUserAgent(true);
client.executeMethod(mkCol, READ_TIMEOUT, CONNECTION_TIMEOUT);
Log.d("CreateFolderRemoteOp", "Query string: "+mkCol.getQueryString());
if (HttpStatus.SC_METHOD_NOT_ALLOWED == mkCol.getStatusCode()) {
result = new RemoteOperationResult(RemoteOperationResult.ResultCode.FOLDER_ALREADY_EXISTS);
} else {
result = new RemoteOperationResult(mkCol.succeeded(), mkCol);
}
Log_OC.d(TAG, "Create directory " + mRemotePath + ": " + result.getLogMessage());
client.exhaustResponse(mkCol.getResponseBodyAsStream());
} catch (Exception e) {
result = new RemoteOperationResult(e);
......
......@@ -117,7 +117,6 @@ public class LightReadFolderRemoteOperation extends RemoteOperation {
}
} else {
// synchronization failed
//@THis need to be check!
client.exhaustResponse( ( (GzipedPropfind) propfind).getDecompressedResponseBodyasStream() );
result = new RemoteOperationResult(false, propfind);
......@@ -131,17 +130,6 @@ public class LightReadFolderRemoteOperation extends RemoteOperation {
if (result == null) {
result = new RemoteOperationResult(new Exception("unknown error"));
Log_OC.e(TAG, "Synchronized " + mRemotePath + ": failed");
} else {
if (result.isSuccess()) {
Log_OC.i(TAG, "Synchronized " + mRemotePath + ": " + result.getLogMessage());
} else {
if (result.isException()) {
Log_OC.e(TAG, "Synchronized " + mRemotePath + ": " + result.getLogMessage(),
result.getException());
} else {
Log_OC.e(TAG, "Synchronized " + mRemotePath + ": " + result.getLogMessage());
}
}
}
}
......
Supports Markdown
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