mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-09 02:23:38 +02:00
Improved debug info
This commit is contained in:
@@ -1679,7 +1679,13 @@ public class Log {
|
||||
File file = attachment.getFile(context);
|
||||
try (OutputStream os = new BufferedOutputStream(new FileOutputStream(file))) {
|
||||
List<EntityAccount> accounts = db.account().getAccounts();
|
||||
size += write(os, "accounts=" + accounts.size() + "\r\n\r\n");
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
boolean enabled = prefs.getBoolean("enabled", true);
|
||||
int pollInterval = prefs.getInt("poll_interval", ServiceSynchronize.DEFAULT_POLL_INTERVAL);
|
||||
|
||||
size += write(os, "accounts=" + accounts.size() +
|
||||
" enabled=" + enabled +
|
||||
" interval=" + pollInterval + "\r\n\r\n");
|
||||
|
||||
for (EntityAccount account : accounts) {
|
||||
if (account.synchronize) {
|
||||
|
||||
Reference in New Issue
Block a user