mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-04 16:16:33 +02:00
Debug info: syncing folders
This commit is contained in:
@@ -243,9 +243,16 @@ public interface DaoFolder {
|
||||
@Query("SELECT download FROM folder WHERE id = :id")
|
||||
boolean getFolderDownload(long id);
|
||||
|
||||
@Query("SELECT COUNT(*) FROM folder")
|
||||
@Query("SELECT COUNT(*) FROM folder" +
|
||||
" JOIN account ON account.id = folder.account" +
|
||||
" WHERE account.synchronize")
|
||||
int countTotal();
|
||||
|
||||
@Query("SELECT COUNT(*) FROM folder" +
|
||||
" JOIN account ON account.id = folder.account" +
|
||||
" WHERE account.synchronize AND folder.synchronize")
|
||||
int countSync();
|
||||
|
||||
@Insert
|
||||
long insertFolder(EntityFolder folder);
|
||||
|
||||
|
||||
@@ -2409,7 +2409,7 @@ public class Log {
|
||||
Helper.getInterruptionFilter(filter) +
|
||||
(filter == NotificationManager.INTERRUPTION_FILTER_ALL ? "" : "!!!")) + "\r\n" +
|
||||
"accounts=" + accounts.size() +
|
||||
" folders=" + db.folder().countTotal() +
|
||||
" folders=" + db.folder().countSync() + "/" + db.folder().countTotal() +
|
||||
" messages=" + db.message().countTotal() +
|
||||
" rules=" + db.rule().countTotal() +
|
||||
" ops=" + db.operation().getOperationCount() +
|
||||
|
||||
Reference in New Issue
Block a user