Skip to content

Commit 9e64e92

Browse files
alperozturk96backportbot[bot]
authored andcommitted
correct logs
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
1 parent 9ac0390 commit 9e64e92

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

app/src/main/java/com/owncloud/android/datamodel/UploadsStorageManager.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,8 @@ public void updateDatabaseUploadResult(RemoteOperationResult uploadResult, Uploa
562562
String localPath = (upload.getLocalBehaviour() == FileUploadWorker.LOCAL_BEHAVIOUR_MOVE)
563563
? upload.getStoragePath() : null;
564564

565+
566+
Log_OC.d(TAG, "local behaviour: " + upload.getLocalBehaviour());
565567
Log_OC.d(TAG, "local path of upload: " + localPath);
566568

567569
UploadStatus status = UploadStatus.UPLOAD_FAILED;

app/src/main/java/com/owncloud/android/operations/UploadFileOperation.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,13 +1138,12 @@ private RemoteOperationResult normalUpload(OwnCloudClient client) {
11381138
Log_OC.e(TAG, "Could not delete temporal file");
11391139
}
11401140
} else {
1141-
Log_OC.e(TAG, "temporal file is null, cannot delete it");
1141+
Log_OC.d(TAG, "temporal file is null - internal storage is used instead of sd-card");
11421142
}
11431143
} catch (Exception e) {
11441144
Log_OC.e(TAG, "an exception occurred during deletion of temporal file: ", e);
11451145
}
11461146

1147-
11481147
if (result == null) {
11491148
result = new RemoteOperationResult<>(ResultCode.UNKNOWN_ERROR);
11501149
}

0 commit comments

Comments
 (0)