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

Commit 44f57478 authored by Doug Zongker's avatar Doug Zongker
Browse files

log hash of account name in sync event log

Add an account field to the sync event, which is the java hash of the
account name.  (A hash is used for privacy reasons.)
parent f1871e27
Loading
Loading
Loading
Loading
+17 −15
Original line number Diff line number Diff line
@@ -2132,7 +2132,8 @@ class SyncManager implements OnAccountsUpdatedListener {
            final long now = System.currentTimeMillis();

            EventLog.writeEvent(2720, syncOperation.authority,
                    SyncStorageEngine.EVENT_START, source);
                                SyncStorageEngine.EVENT_START, source,
                                syncOperation.account.name.hashCode());

            return mSyncStorageEngine.insertStartSyncEvent(
                    syncOperation.account, syncOperation.authority, now, source);
@@ -2141,7 +2142,8 @@ class SyncManager implements OnAccountsUpdatedListener {
        public void stopSyncEvent(long rowId, SyncOperation syncOperation, String resultMessage,
                int upstreamActivity, int downstreamActivity, long elapsedTime) {
            EventLog.writeEvent(2720, syncOperation.authority,
                    SyncStorageEngine.EVENT_STOP, syncOperation.syncSource);
                                SyncStorageEngine.EVENT_STOP, syncOperation.syncSource,
                                syncOperation.account.name.hashCode());

            mSyncStorageEngine.stopSyncEvent(rowId, elapsedTime, resultMessage,
                    downstreamActivity, upstreamActivity);