Browse code

Chore: get rid of system.err on annotations stuff

Thomas Cataldo authored on 07/01/2019 13:44:21
Showing 2 changed files
... ...
@@ -70,7 +70,7 @@ public class MailboxFolder {
70 70
 				ma.mailbox = mf.name;
71 71
 				return ma;
72 72
 			});
73
-			System.err.println("ANNOTS: " + mf.annotations);
73
+			logger.debug("ANNOTS: {}", mf.annotations);
74 74
 		}
75 75
 		mf.syncCRC = Long.parseLong(mbox.getString("SYNC_CRC"));
76 76
 		mf.quotaRoot = mbox.getString("QUOTAROOT");
... ...
@@ -318,7 +318,7 @@ public class ReplicationState {
318 318
 				if (folder.getAnnotations().isEmpty()) {
319 319
 					return CompletableFuture.completedFuture(null);
320 320
 				} else {
321
-					System.err.println("Should save " + folder.getAnnotations().size() + " annotations");
321
+					logger.debug("Should save {} annotation(s)", folder.getAnnotations().size());
322 322
 					return CompletableFuture.allOf(folder.getAnnotations().stream().map(anno -> annotate(anno))
323 323
 							.toArray(CompletableFuture[]::new));
324 324
 				}