Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e6a3bd6b authored by Varun Shah's avatar Varun Shah
Browse files

Update sync op duplicate log to a WTF.

Update error log in SyncManager to a WTF with better logging details to
help identify the issue.

Bug: 132390444
Test: builds and flashes
Change-Id: I76e60ab80a6ad40fe9307dc9caaeda33d28a07b2
parent 4fc0de74
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -1533,7 +1533,13 @@ public class SyncManager {
                }
            }
            if (duplicatesCount > 1) {
                Slog.e(TAG, "FATAL ERROR! File a bug if you see this.");
                Slog.wtf(TAG, "duplicates found when scheduling a sync operation: "
                        + "owningUid=" + syncOperation.owningUid
                        + "; owningPackage=" + syncOperation.owningPackage
                        + "; source=" + syncOperation.syncSource
                        + "; adapter=" + (syncOperation.target != null
                                            ? syncOperation.target.provider
                                            : "unknown"));
            }

            if (syncOperation != syncToRun) {