Added operation breadcrumb

This commit is contained in:
M66B 2019-05-10 15:59:50 +02:00
parent d4b0b34f3a
commit f0b9395827
1 changed files with 9 additions and 0 deletions

View File

@ -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)