TF-4136 Add logError for send email exception thrower
This commit is contained in:
@@ -24,7 +24,7 @@ As part of PR #4205, the logging system was refactored to normalize log severity
|
||||
|
||||
| Level | Function | Intended usage |
|
||||
|------|---------|----------------|
|
||||
| critical | logWTF | System-level, unrecoverable failures (extremely rare) |
|
||||
| critical | logCritical | System-level, unrecoverable failures (extremely rare) |
|
||||
| error | logError | Critical, actionable failures that must be monitored |
|
||||
| warning | logWarning | Recoverable issues or degraded behavior |
|
||||
| info | logInfo / log | Normal application lifecycle events |
|
||||
|
||||
@@ -18,7 +18,7 @@ class SendEmailExceptionThrower extends RemoteExceptionThrower {
|
||||
final networkConnectionController = getBinding<NetworkConnectionController>();
|
||||
final realtimeNetworkConnectionStatus = await networkConnectionController?.hasInternetConnection();
|
||||
if (realtimeNetworkConnectionStatus == false) {
|
||||
logWarning('SendEmailExceptionThrower::throwException(): No realtime network connection');
|
||||
logError('SendEmailExceptionThrower::throwException(): No realtime network connection');
|
||||
throw const NoNetworkError();
|
||||
} else {
|
||||
handleDioError(error);
|
||||
|
||||
Reference in New Issue
Block a user