TF-4136 Replace logError to logWarning for some place
This commit is contained in:
@@ -246,7 +246,7 @@ class StringConvert {
|
|||||||
|
|
||||||
return textContent.trim();
|
return textContent.trim();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
logError('StringConvert::convertHtmlContentToTextContent:Exception = $e');
|
logWarning('StringConvert::convertHtmlContentToTextContent:Exception = $e');
|
||||||
return htmlContent.trim();
|
return htmlContent.trim();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ mixin AiScribeMixin {
|
|||||||
AIScribeBindings(aiCapability!.scribeEndpoint!).dependencies();
|
AIScribeBindings(aiCapability!.scribeEndpoint!).dependencies();
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
logError('AiScribeMixin::injectAIScribeBindings(): $e');
|
logWarning('AiScribeMixin::injectAIScribeBindings(): $e');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+4
-4
@@ -31,7 +31,7 @@ extension HandleAiScribeInComposerExtension on ComposerController {
|
|||||||
);
|
);
|
||||||
return textContent;
|
return textContent;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
logError('$runtimeType::getTextOnlyContentInEditor:Exception = $e');
|
logWarning('$runtimeType::getTextOnlyContentInEditor:Exception = $e');
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -51,7 +51,7 @@ extension HandleAiScribeInComposerExtension on ComposerController {
|
|||||||
richTextMobileTabletController?.htmlEditorApi?.insertHtml(htmlContent);
|
richTextMobileTabletController?.htmlEditorApi?.insertHtml(htmlContent);
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
logError('$runtimeType::insertTextInEditor:Exception = $e');
|
logWarning('$runtimeType::insertTextInEditor:Exception = $e');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -69,7 +69,7 @@ extension HandleAiScribeInComposerExtension on ComposerController {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
logError('$runtimeType::collapseSelection:Exception = $e');
|
logWarning('$runtimeType::collapseSelection:Exception = $e');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -81,7 +81,7 @@ extension HandleAiScribeInComposerExtension on ComposerController {
|
|||||||
richTextMobileTabletController?.htmlEditorApi?.setText('');
|
richTextMobileTabletController?.htmlEditorApi?.setText('');
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
logError('$runtimeType::clearTextInEditor:Exception = $e');
|
logWarning('$runtimeType::clearTextInEditor:Exception = $e');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ class _MobileEditorState extends State<MobileEditorWidget> with TextSelectionMix
|
|||||||
try {
|
try {
|
||||||
await _setupSelectionListener(editorApi);
|
await _setupSelectionListener(editorApi);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
logError('Error onWebViewCreated: $e');
|
logWarning('Error onWebViewCreated: $e');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ class _WebEditorState extends State<WebEditorWidget> with TextSelectionMixin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
logError(
|
logWarning(
|
||||||
'_WebEditorState::_editorListener: Unable to parse message data = $e',
|
'_WebEditorState::_editorListener: Unable to parse message data = $e',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -195,7 +195,7 @@ extension SessionExtensions on Session {
|
|||||||
log('SessionExtensions::getAICapability:aiCapability = $aiCapability');
|
log('SessionExtensions::getAICapability:aiCapability = $aiCapability');
|
||||||
return aiCapability;
|
return aiCapability;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
logError('SessionExtensions::getAICapability():[Exception] $e');
|
logWarning('SessionExtensions::getAICapability():[Exception] $e');
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ class AICapability extends CapabilityProperties {
|
|||||||
|
|
||||||
// Validate endpoint format - must be an absolute URI
|
// Validate endpoint format - must be an absolute URI
|
||||||
if (Uri.tryParse(urlEndpoint)?.isAbsolute != true) {
|
if (Uri.tryParse(urlEndpoint)?.isAbsolute != true) {
|
||||||
logError(
|
logWarning(
|
||||||
'AICapability::isScribeEndpointAvailable(): Invalid endpoint format: $urlEndpoint',
|
'AICapability::isScribeEndpointAvailable(): Invalid endpoint format: $urlEndpoint',
|
||||||
);
|
);
|
||||||
return false;
|
return false;
|
||||||
@@ -31,7 +31,7 @@ class AICapability extends CapabilityProperties {
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
logError(
|
logWarning(
|
||||||
'AICapability::isScribeEndpointAvailable(): Exception: $e',
|
'AICapability::isScribeEndpointAvailable(): Exception: $e',
|
||||||
);
|
);
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user