mirror of https://github.com/M66B/FairEmail.git
Debug info: syncing folders
This commit is contained in:
parent
da5c23b6ba
commit
dc1f3c5725
|
@ -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() +
|
||||
|
|
Loading…
Reference in New Issue