TF-4136 refactor(logging): replace logError with logWarning for non-critical cases
This commit is contained in:
@@ -166,7 +166,7 @@ class _HtmlContentViewerOnWebState extends State<HtmlContentViewerOnWeb>
|
||||
_handleHyperLinkEvent(data['url']);
|
||||
}
|
||||
} catch (e) {
|
||||
logError('$runtimeType::_handleMessageEvent:Exception = $e');
|
||||
logWarning('$runtimeType::_handleMessageEvent:Exception = $e');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -212,7 +212,7 @@ class _HtmlContentViewerOnWebState extends State<HtmlContentViewerOnWeb>
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
logError('$runtimeType::_handleIframeOnScrollChangedListener:Exception = $e');
|
||||
logWarning('$runtimeType::_handleIframeOnScrollChangedListener:Exception = $e');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -309,7 +309,7 @@ class _HtmlContentViewerOnWebState extends State<HtmlContentViewerOnWeb>
|
||||
log('$runtimeType::_handleOnIFrameKeyboardEvent:📥 Shortcut pressed: $shortcut');
|
||||
widget.onIFrameKeyboardShortcutAction?.call(shortcut);
|
||||
} catch (e) {
|
||||
logError('$runtimeType::_handleOnIFrameKeyboardEvent: Exception = $e');
|
||||
logWarning('$runtimeType::_handleOnIFrameKeyboardEvent: Exception = $e');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -323,7 +323,7 @@ class _HtmlContentViewerOnWebState extends State<HtmlContentViewerOnWeb>
|
||||
log('$runtimeType::_handleOnIFrameClickEvent: $data');
|
||||
widget.onIFrameClickAction?.call();
|
||||
} catch (e) {
|
||||
logError('$runtimeType::_handleOnIFrameClickEvent: Exception = $e');
|
||||
logWarning('$runtimeType::_handleOnIFrameClickEvent: Exception = $e');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -354,7 +354,7 @@ class _HtmlContentViewerOnWebState extends State<HtmlContentViewerOnWeb>
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
logError('$runtimeType::_handleOnIFrameLinkHoverEvent: Exception = $e');
|
||||
logWarning('$runtimeType::_handleOnIFrameLinkHoverEvent: Exception = $e');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -363,7 +363,7 @@ class _HtmlContentViewerOnWebState extends State<HtmlContentViewerOnWeb>
|
||||
log('$runtimeType::_handleOnIFrameLinkOutEvent: $data');
|
||||
_tooltipOverlay?.hide();
|
||||
} catch (e) {
|
||||
logError('$runtimeType::_handleOnIFrameLinkOutEvent: Exception = $e');
|
||||
logWarning('$runtimeType::_handleOnIFrameLinkOutEvent: Exception = $e');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -411,7 +411,7 @@ class HtmlContentViewState extends State<HtmlContentViewer> with AutomaticKeepAl
|
||||
try {
|
||||
_webViewController.dispose();
|
||||
} catch (e) {
|
||||
logError('_HtmlContentViewState:dispose:_webViewController.dispose: $e');
|
||||
logWarning('_HtmlContentViewState:dispose:_webViewController.dispose: $e');
|
||||
}
|
||||
} else {
|
||||
_webViewController.dispose();
|
||||
|
||||
@@ -111,7 +111,7 @@ class QuickSearchSuggestionListState<T, P, R>
|
||||
try {
|
||||
return await widget.fetchRecentActionCallback?.call(queryString);
|
||||
} catch (e) {
|
||||
logError('SuggestionsListState::_getRecent:Exception = $e');
|
||||
logWarning('SuggestionsListState::_getRecent:Exception = $e');
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -120,7 +120,7 @@ class QuickSearchSuggestionListState<T, P, R>
|
||||
try {
|
||||
return await widget.contactSuggestionCallback?.call(queryString);
|
||||
} catch (e) {
|
||||
logError('SuggestionsListState::_getListContact:Exception = $e');
|
||||
logWarning('SuggestionsListState::_getListContact:Exception = $e');
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -129,7 +129,7 @@ class QuickSearchSuggestionListState<T, P, R>
|
||||
try {
|
||||
return await widget.suggestionsCallback?.call(queryString);
|
||||
} catch (e) {
|
||||
logError('SuggestionsListState::_getListSuggestion:Exception = $e');
|
||||
logWarning('SuggestionsListState::_getListSuggestion:Exception = $e');
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user