mirror of https://github.com/M66B/FairEmail.git
Added operation breadcrumb
This commit is contained in:
parent
d4b0b34f3a
commit
f0b9395827
|
@ -38,6 +38,8 @@ import androidx.annotation.NonNull;
|
|||
import androidx.core.app.NotificationCompat;
|
||||
import androidx.preference.PreferenceManager;
|
||||
|
||||
import com.bugsnag.android.BreadcrumbType;
|
||||
import com.bugsnag.android.Bugsnag;
|
||||
import com.sun.mail.iap.CommandFailedException;
|
||||
import com.sun.mail.iap.ConnectionException;
|
||||
import com.sun.mail.iap.Response;
|
||||
|
@ -144,6 +146,13 @@ class Core {
|
|||
" msg=" + op.message +
|
||||
" args=" + op.args);
|
||||
|
||||
Map<String, String> crumb = new HashMap<>();
|
||||
crumb.put("name", op.name);
|
||||
crumb.put("args", op.args);
|
||||
crumb.put("folder", folder.type);
|
||||
crumb.put("UIDPLUS", Boolean.toString(((IMAPStore) istore).hasCapability("UIDPLUS")));
|
||||
Bugsnag.leaveBreadcrumb("operation", BreadcrumbType.STATE, crumb);
|
||||
|
||||
// Fetch most recent copy of message
|
||||
EntityMessage message = null;
|
||||
if (op.message != null)
|
||||
|
|
Loading…
Reference in New Issue