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
@@ -48,7 +48,7 @@ class ForwardRecipientController {
requireCapability(session!, accountId!, [tmailContactCapabilityIdentifier]);
TMailAutoCompleteBindings().dependencies();
} catch (e) {
logError('ForwardRecipientController::injectAutoCompleteBindings(): exception: $e');
logWarning('ForwardRecipientController::injectAutoCompleteBindings(): exception: $e');
}
}
@@ -9,7 +9,7 @@ import 'package:tmail_ui_user/features/manage_account/presentation/forward/forwa
extension HandleUpdateForwardExtension on ForwardController {
void handleErrorWhenUpdateForwardFail(Failure failure) {
logError(
logWarning(
'$runtimeType::handleErrorWhenUpdateForwardFail: $failure',
);
if (failure is AddRecipientsInForwardingFailure) {
@@ -70,7 +70,7 @@ class ForwardController extends BaseController {
_addRecipientsInForwardingInteractor = Get.find<AddRecipientsInForwardingInteractor>();
_editLocalCopyInForwardingInteractor = Get.find<EditLocalCopyInForwardingInteractor>();
} catch (e) {
logError('ForwardController::onInit(): ${e.toString()}');
logWarning('ForwardController::onInit(): ${e.toString()}');
}
}