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
@@ -104,7 +104,7 @@ class HtmlAnalyzer {
return listEventAction;
}
} catch(e) {
logError('HtmlAnalyzer::getListEventAction:Exception: $e');
logWarning('HtmlAnalyzer::getListEventAction:Exception: $e');
return [];
}
}
@@ -205,7 +205,7 @@ class HtmlAnalyzer {
}));
return document.body?.innerHtml ?? emailContent;
} catch (e) {
logError('HtmlAnalyzer::removeCollapsedExpandedSignatureEffect:Exception = $e');
logWarning('HtmlAnalyzer::removeCollapsedExpandedSignatureEffect:Exception = $e');
return emailContent;
}
}
@@ -233,7 +233,7 @@ class HtmlAnalyzer {
log('HtmlAnalyzer::_retrieveAttachmentFromUpload:Attachment = $attachment | taskId = $taskId');
return (attachment, taskId);
} catch (e) {
logError('HtmlAnalyzer::_retrieveAttachmentFromUpload:Exception = $e');
logWarning('HtmlAnalyzer::_retrieveAttachmentFromUpload:Exception = $e');
return null;
}
}
@@ -259,7 +259,7 @@ class HtmlAnalyzer {
}));
return document.body?.innerHtml ?? emailContent;
} catch (e) {
logError('HtmlAnalyzer::removeStyleLazyLoadDisplayInlineImages:Exception = $e');
logWarning('HtmlAnalyzer::removeStyleLazyLoadDisplayInlineImages:Exception = $e');
return emailContent;
}
}