TF-4136 refactor(logging): replace logError with logWarning for non-critical cases
This commit is contained in:
@@ -70,7 +70,7 @@ class Domain with EquatableMixin {
|
||||
InternetAddress(value);
|
||||
return true;
|
||||
} catch (e) {
|
||||
logError('Domain::validIPAddress: Exception = $e');
|
||||
logWarning('Domain::validIPAddress: Exception = $e');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ class MailAddress with EquatableMixin {
|
||||
throw AddressException('No domain found at position ${pos + 1} in "$address"');
|
||||
}
|
||||
} catch (e) {
|
||||
logError('MailAddress::validate: Exception = $e');
|
||||
logWarning('MailAddress::validate: Exception = $e');
|
||||
if (e is AddressException) {
|
||||
rethrow;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user