TF-4136 refactor(logging): replace logError with logWarning for non-critical cases

This commit is contained in:
dab246
2026-01-02 12:18:38 +07:00
committed by Dat H. Pham
parent 73dcb6067c
commit a23d15a9ca
160 changed files with 382 additions and 360 deletions
@@ -45,7 +45,7 @@ class GetEmailsByIdsInteractor {
updateCurrentThreadDetail: updateCurrentThreadDetail,
));
} catch (e) {
logError('GetEmailsByIdsInteractor::execute(): Exception: $e');
logWarning('GetEmailsByIdsInteractor::execute(): Exception: $e');
yield Left(GetEmailsByIdsFailure(
exception: e,
onRetry: execute(session, accountId, emailIds, properties: properties),
@@ -43,7 +43,7 @@ class GetThreadByIdInteractor {
emailsInThreadDetailInfo: result,
));
} catch (e) {
logError('GetEmailIdsByThreadIdInteractor::execute(): Exception: $e');
logWarning('GetEmailIdsByThreadIdInteractor::execute(): Exception: $e');
yield Left(GetThreadByIdFailure(
exception: e,
onRetry: execute(
@@ -16,7 +16,7 @@ class GetThreadDetailStatusInteractor {
final result = await _threadDetailRepository.getThreadDetailStatus();
yield Right(GetThreadDetailStatusSuccess(result));
} catch (e) {
logError('GetThreadDetailStatusInteractor::execute(): Exception: $e');
logWarning('GetThreadDetailStatusInteractor::execute(): Exception: $e');
yield Left(GetThreadDetailStatusFailure(exception: e));
}
}