TF-4136 refactor(logging): replace logError with logWarning for non-critical cases
This commit is contained in:
@@ -499,7 +499,7 @@ class EmailDataSourceImpl extends EmailDataSource {
|
||||
|
||||
return listEmailContent.asHtmlString;
|
||||
} catch (e) {
|
||||
logError('EmailDataSourceImpl::_transformEmailContent:Exception = $e');
|
||||
logWarning('EmailDataSourceImpl::_transformEmailContent:Exception = $e');
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -87,7 +87,7 @@ class PrintFileDataSourceImpl extends PrintFileDataSource {
|
||||
|
||||
return htmlContentTransformed;
|
||||
} catch (e) {
|
||||
logError('PrintFileDataSourceImpl::_transformHtmlEmailContent: Exception: $e');
|
||||
logWarning('PrintFileDataSourceImpl::_transformHtmlEmailContent: Exception: $e');
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ class CalendarEventAPI {
|
||||
methodCallId,
|
||||
GetCalendarEventAttendanceResponse.deserialize);
|
||||
} catch (e) {
|
||||
logError('CalendarEventAPI.parse free/busy query error: $e');
|
||||
logWarning('CalendarEventAPI.parse free/busy query error: $e');
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -668,7 +668,7 @@ class EmailAPI with HandleSetErrorMixin, MailAPIMixin {
|
||||
cancelToken: cancelToken
|
||||
);
|
||||
} catch (e) {
|
||||
logError('EmailAPI::updateEmailDrafts: Exception = $e');
|
||||
logWarning('EmailAPI::updateEmailDrafts: Exception = $e');
|
||||
}
|
||||
|
||||
return emailCreated;
|
||||
@@ -713,7 +713,7 @@ class EmailAPI with HandleSetErrorMixin, MailAPIMixin {
|
||||
cancelToken: cancelToken
|
||||
);
|
||||
} catch (e) {
|
||||
logError('EmailAPI::updateEmailTemplate: Exception = $e');
|
||||
logWarning('EmailAPI::updateEmailTemplate: Exception = $e');
|
||||
}
|
||||
|
||||
return emailCreated;
|
||||
|
||||
@@ -84,7 +84,7 @@ class EmailRepositoryImpl extends EmailRepository {
|
||||
[emailRequest.emailIdAnsweredOrForwarded!],
|
||||
);
|
||||
} catch (e) {
|
||||
logError('EmailRepositoryImpl::sendEmail::markAsAnswered:Exception $e');
|
||||
logWarning('EmailRepositoryImpl::sendEmail::markAsAnswered:Exception $e');
|
||||
}
|
||||
} else if (emailRequest.isEmailForwarded) {
|
||||
try {
|
||||
@@ -94,7 +94,7 @@ class EmailRepositoryImpl extends EmailRepository {
|
||||
[emailRequest.emailIdAnsweredOrForwarded!],
|
||||
);
|
||||
} catch (e) {
|
||||
logError('EmailRepositoryImpl::sendEmail::markAsForwarded:Exception $e');
|
||||
logWarning('EmailRepositoryImpl::sendEmail::markAsForwarded:Exception $e');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -126,7 +126,7 @@ class EmailRepositoryImpl extends EmailRepository {
|
||||
readActions,
|
||||
);
|
||||
} catch (e) {
|
||||
logError('EmailRepositoryImpl::markAsRead:exception $e');
|
||||
logWarning('EmailRepositoryImpl::markAsRead:exception $e');
|
||||
}
|
||||
|
||||
return result;
|
||||
@@ -168,7 +168,7 @@ class EmailRepositoryImpl extends EmailRepository {
|
||||
),
|
||||
);
|
||||
} catch (e) {
|
||||
logError('EmailRepositoryImpl::moveToMailbox:exception $e');
|
||||
logWarning('EmailRepositoryImpl::moveToMailbox:exception $e');
|
||||
}
|
||||
|
||||
return result;
|
||||
@@ -198,7 +198,7 @@ class EmailRepositoryImpl extends EmailRepository {
|
||||
markStarAction
|
||||
);
|
||||
} catch (e) {
|
||||
logError('EmailRepositoryImpl::markAsStar:exception $e');
|
||||
logWarning('EmailRepositoryImpl::markAsStar:exception $e');
|
||||
}
|
||||
return result;
|
||||
}
|
||||
@@ -241,7 +241,7 @@ class EmailRepositoryImpl extends EmailRepository {
|
||||
cancelToken: cancelToken
|
||||
);
|
||||
} catch (e) {
|
||||
logError('EmailRepositoryImpl::saveEmailAsDrafts:exception $e');
|
||||
logWarning('EmailRepositoryImpl::saveEmailAsDrafts:exception $e');
|
||||
}
|
||||
return result;
|
||||
}
|
||||
@@ -267,7 +267,7 @@ class EmailRepositoryImpl extends EmailRepository {
|
||||
cancelToken: cancelToken
|
||||
);
|
||||
} catch (e) {
|
||||
logError('EmailRepositoryImpl::removeEmailDrafts:exception $e');
|
||||
logWarning('EmailRepositoryImpl::removeEmailDrafts:exception $e');
|
||||
}
|
||||
return result;
|
||||
}
|
||||
@@ -295,7 +295,7 @@ class EmailRepositoryImpl extends EmailRepository {
|
||||
oldEmailId,
|
||||
);
|
||||
} catch (e) {
|
||||
logError('EmailRepositoryImpl::updateEmailDrafts:exception $e');
|
||||
logWarning('EmailRepositoryImpl::updateEmailDrafts:exception $e');
|
||||
}
|
||||
return result;
|
||||
}
|
||||
@@ -326,7 +326,7 @@ class EmailRepositoryImpl extends EmailRepository {
|
||||
cancelToken: cancelToken
|
||||
);
|
||||
} catch (e) {
|
||||
logError('EmailRepositoryImpl::saveEmailAsTemplate:exception $e');
|
||||
logWarning('EmailRepositoryImpl::saveEmailAsTemplate:exception $e');
|
||||
}
|
||||
return result;
|
||||
}
|
||||
@@ -354,7 +354,7 @@ class EmailRepositoryImpl extends EmailRepository {
|
||||
oldEmailId,
|
||||
);
|
||||
} catch (e) {
|
||||
logError('EmailRepositoryImpl::updateEmailTemplate:exception $e');
|
||||
logWarning('EmailRepositoryImpl::updateEmailTemplate:exception $e');
|
||||
}
|
||||
return result;
|
||||
}
|
||||
@@ -378,7 +378,7 @@ class EmailRepositoryImpl extends EmailRepository {
|
||||
await emailDataSource[DataSourceType.hiveCache]
|
||||
!.deleteMultipleEmailsPermanently(session, accountId, result.emailIdsSuccess);
|
||||
} catch (e) {
|
||||
logError('EmailRepositoryImpl::deleteMultipleEmailsPermanently:exception $e');
|
||||
logWarning('EmailRepositoryImpl::deleteMultipleEmailsPermanently:exception $e');
|
||||
}
|
||||
|
||||
return result;
|
||||
@@ -404,7 +404,7 @@ class EmailRepositoryImpl extends EmailRepository {
|
||||
emailId,
|
||||
);
|
||||
} catch (e) {
|
||||
logError('EmailRepositoryImpl::deleteEmailPermanently:exception $e');
|
||||
logWarning('EmailRepositoryImpl::deleteEmailPermanently:exception $e');
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user