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
@@ -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;
}
}