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
+3 -3
View File
@@ -143,7 +143,7 @@ class ToastManager {
final context = currentContext;
final overlayContext = currentOverlayContext;
if (context == null || overlayContext == null) {
logError('ToastManager::showMessageFailure: Context or OverlayContext is null');
logWarning('ToastManager::showMessageFailure: Context or OverlayContext is null');
return;
}
@@ -231,7 +231,7 @@ class ToastManager {
final context = currentContext;
final overlayContext = currentOverlayContext;
if (context == null || overlayContext == null) {
logError('ToastManager::showMessageSuccess: Context or OverlayContext is null');
logWarning('ToastManager::showMessageSuccess: Context or OverlayContext is null');
return;
}
@@ -273,7 +273,7 @@ class ToastManager {
final context = currentContext;
final overlayContext = currentOverlayContext;
if (context == null || overlayContext == null) {
logError('$runtimeType::showMessageSuccessWithAction: Context or OverlayContext is null');
logWarning('$runtimeType::showMessageSuccessWithAction: Context or OverlayContext is null');
return;
}