TF-4136 refactor(logging): replace logError with logWarning for non-critical cases
This commit is contained in:
@@ -106,7 +106,7 @@ class GetEmailContentInteractor {
|
||||
));
|
||||
}
|
||||
} catch (e) {
|
||||
logError('GetEmailContentInteractor::_getContentEmailFromServer():EXCEPTION: $e');
|
||||
logWarning('GetEmailContentInteractor::_getContentEmailFromServer():EXCEPTION: $e');
|
||||
yield Left<Failure, Success>(GetEmailContentFailure(
|
||||
e,
|
||||
onRetry: execute(
|
||||
@@ -149,7 +149,7 @@ class GetEmailContentInteractor {
|
||||
)
|
||||
));
|
||||
} catch (e) {
|
||||
logError('GetEmailContentInteractor::_getStoredOpenedEmail():EXCEPTION: $e');
|
||||
logWarning('GetEmailContentInteractor::_getStoredOpenedEmail():EXCEPTION: $e');
|
||||
yield* _getStoredNewEmail(
|
||||
session,
|
||||
accountId,
|
||||
@@ -190,7 +190,7 @@ class GetEmailContentInteractor {
|
||||
)
|
||||
));
|
||||
} catch (e) {
|
||||
logError('GetEmailContentInteractor::_getStoredNewEmail():EXCEPTION: $e');
|
||||
logWarning('GetEmailContentInteractor::_getStoredNewEmail():EXCEPTION: $e');
|
||||
yield* _getContentEmailFromServer(
|
||||
session,
|
||||
accountId,
|
||||
|
||||
@@ -59,7 +59,7 @@ class SaveTemplateEmailInteractor {
|
||||
yield Right(SaveTemplateEmailSuccess(emailTemplateSaved.id!));
|
||||
}
|
||||
} catch (e) {
|
||||
logError('SaveTemplateEmailInteractor::execute(): $e');
|
||||
logWarning('SaveTemplateEmailInteractor::execute(): $e');
|
||||
if (createEmailRequest.templateEmailId != null) {
|
||||
yield Left(UpdateTemplateEmailFailure(exception: e));
|
||||
} else {
|
||||
@@ -76,7 +76,7 @@ class SaveTemplateEmailInteractor {
|
||||
isTemplate: true);
|
||||
return emailCreated;
|
||||
} catch (e) {
|
||||
logError('CreateNewAndSaveEmailToDraftsInteractor::_createEmailObject: Exception: $e');
|
||||
logWarning('CreateNewAndSaveEmailToDraftsInteractor::_createEmailObject: Exception: $e');
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ class StoreListNewEmailInteractor {
|
||||
await _emailRepository.getStoredNewEmail(session, accountId, detailedEmail.emailId);
|
||||
return true;
|
||||
} catch (err) {
|
||||
logError('StoreNewEmailInteractor::_isNewEmailAlreadyStored():EXCEPTION: $err');
|
||||
logWarning('StoreNewEmailInteractor::_isNewEmailAlreadyStored():EXCEPTION: $err');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ class StoreOpenedEmailInteractor {
|
||||
await _emailRepository.getStoredOpenedEmail(session, accountId, detailedEmail.emailId);
|
||||
return true;
|
||||
} catch (err) {
|
||||
logError('StoreOpenedEmailInteractor::isOpenedEmailAlreadyStored():EXCEPTION: $err');
|
||||
logWarning('StoreOpenedEmailInteractor::isOpenedEmailAlreadyStored():EXCEPTION: $err');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user