TF-4368 Add log to tracing refresh change emails on Sentry

This commit is contained in:
dab246
2026-03-12 11:15:03 +07:00
committed by Dat H. Pham
parent 80c368be62
commit cdc7d711f5
2 changed files with 36 additions and 5 deletions
@@ -375,9 +375,26 @@ class ThreadRepositoryImpl extends ThreadRepository {
mailboxId: emailFilter?.mailboxId,
propertiesCreated: propertiesCreated,
);
logTrace(
'ThreadRepositoryImpl::refreshChanges():'
'CountEmailCached = ${newEmailResponse.emailList?.length}, '
'EmailStateCache = ${newEmailResponse.state?.value}, '
'InMailboxId = ${emailFilter?.mailboxId?.asString}, '
'Limit = ${limit?.value.toInt()}, '
'DefaultLimit = ${ThreadConstants.defaultLimit.value.toInt()}, '
'CountEmailNetwork = ${networkEmailResponse.emailList?.length}, '
'EmailStateNetwork = ${networkEmailResponse.state?.value}, ',
);
yield networkEmailResponse.copyWith(emailChangeResponse: emailChangeResponse);
} else {
logTrace(
'ThreadRepositoryImpl::refreshChanges():'
'CountEmailCached = ${newEmailResponse.emailList?.length}, '
'EmailStateCache = ${newEmailResponse.state?.value}, '
'InMailboxId = ${emailFilter?.mailboxId?.asString}, '
'Limit = ${limit?.value.toInt()}, '
'DefaultLimit = ${ThreadConstants.defaultLimit.value.toInt()}, ',
);
yield newEmailResponse.copyWith(emailChangeResponse: emailChangeResponse);
}
}