Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

remove log

parent 85a86e7f
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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);
+0 −12
Original line number Diff line number Diff line
@@ -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());
                    }
                }
            }
        }