TF-4136 refactor(logging): replace logError with logWarning for non-critical cases
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user