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
+5 -5
View File
@@ -671,7 +671,7 @@ class HtmlUtils {
return true;
} catch (e) {
logError('AppUtils::openNewWindowByUrl:Exception = $e');
logWarning('AppUtils::openNewWindowByUrl:Exception = $e');
return false;
}
}
@@ -683,7 +683,7 @@ class HtmlUtils {
titleElements.first.text = title;
}
} catch (e) {
logError('AppUtils::setWindowBrowserTitle:Exception = $e');
logWarning('AppUtils::setWindowBrowserTitle:Exception = $e');
}
}
@@ -691,7 +691,7 @@ class HtmlUtils {
try {
return htmlUnescape.convert(input);
} catch (e) {
logError('HtmlUtils::unescapeHtml:Exception = $e');
logWarning('HtmlUtils::unescapeHtml:Exception = $e');
return input;
}
}
@@ -718,7 +718,7 @@ class HtmlUtils {
log('HtmlUtils::isOldSafari:Version = $version');
return version != null && version < 17;
} catch (e) {
logError('HtmlUtils::isOldSafari:Exception = $e');
logWarning('HtmlUtils::isOldSafari:Exception = $e');
return false;
}
}
@@ -893,7 +893,7 @@ class HtmlUtils {
return container.innerHtml;
} catch (e) {
logError('HtmlUtils::wrapPlainTextLinks:Exception = $e');
logWarning('HtmlUtils::wrapPlainTextLinks:Exception = $e');
return htmlString;
}
}