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
@@ -77,7 +77,7 @@ class DownloadAllAttachmentsForWebInteractor {
yield Right(DownloadAllAttachmentsForWebSuccess(taskId: taskId));
} catch (e) {
logError('DownloadAllAttachmentsForWebInteractor::execute():EXCEPTION: $e');
logWarning('DownloadAllAttachmentsForWebInteractor::execute():EXCEPTION: $e');
yield Left(DownloadAllAttachmentsForWebFailure(
exception: e,
taskId: taskId,
@@ -87,7 +87,7 @@ class DownloadAndGetHtmlContentFromAttachmentInteractor {
));
}
} catch (e) {
logError('GetHtmlContentFromAttachmentInteractor:exception: $e');
logWarning('GetHtmlContentFromAttachmentInteractor:exception: $e');
yield Left(DownloadAndGetHtmlContentFromAttachmentFailure(
exception: e,
blobId: attachment.blobId,
@@ -61,7 +61,7 @@ class ExportAllAttachmentsInteractor {
yield Right(ExportAllAttachmentsSuccess(result));
} catch (e) {
logError('ExportAllAttachmentsInteractor::execute():EXCEPTION: $e');
logWarning('ExportAllAttachmentsInteractor::execute():EXCEPTION: $e');
yield Left(ExportAllAttachmentsFailure(exception: e));
}
}