Skip to content

Commit 2b42464

Browse files
committed
better log
Signed-off-by: alperozturk <[email protected]>
1 parent 15fd3bf commit 2b42464

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

library/src/androidTest/java/com/owncloud/android/AbstractIT.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ private static void waitForServer(OwnCloudClient client, Uri baseUrl) {
121121
GetMethod get;
122122
int maxRetries = 3;
123123

124-
for (int i=0;i<maxRetries;i++) {
124+
for (int i = 0; i < maxRetries; i++) {
125125
get = new GetMethod(statusUrl);
126126

127127
try {
@@ -272,14 +272,14 @@ private void removeOnClient(OwnCloudClient client) {
272272

273273
for (Object object : result.getData()) {
274274
if (!(object instanceof RemoteFile remoteFile)) {
275-
Log_OC.d(TAG, "removeOnClient skipping not instance of RemoteFile");
275+
Log_OC.d(TAG, "Skipping removeOnClient: not instance of RemoteFile");
276276
continue;
277277
}
278278

279279
String remotePath = remoteFile.getRemotePath();
280280

281281
if ("/".equals(remotePath) || remoteFile.getMountType() == WebdavEntry.MountType.GROUP) {
282-
Log_OC.d(TAG, "removeOnClient skipping root path or mount type is group");
282+
Log_OC.d(TAG, "Skipping removeOnClient: remote path is root path or mount type is group");
283283
continue;
284284
}
285285

@@ -296,9 +296,8 @@ private void removeOnClient(OwnCloudClient client) {
296296
assertTrue(removeFileOperationErrorMessage, isRemoteFileRemoved);
297297
}
298298

299-
// delete keystore
300299
boolean isKeyStoreDeleted = new File(context.getFilesDir(), LOCAL_TRUSTSTORE_FILENAME).delete();
301-
Log_OC.d(TAG,"KeyStore file deletion result: " + isKeyStoreDeleted);
300+
Log_OC.d(TAG, "KeyStore file deletion result: " + isKeyStoreDeleted);
302301
}
303302

304303
private boolean toggleEncryptionRemoteFile(RemoteFile remoteFile) {
@@ -311,7 +310,7 @@ private void unlockRemoteFile(String path) {
311310
final var operation = new ToggleFileLockRemoteOperation(false, path);
312311
final var result = operation.execute(nextcloudClient);
313312
if (result.isSuccess()) {
314-
Log_OC.d(TAG,"Locked file: " + path + " unlocked");
313+
Log_OC.d(TAG, "Locked file: " + path + " unlocked");
315314
}
316315
}
317316

0 commit comments

Comments
 (0)