TF-4136 refactor(logging): replace logError with logWarning for non-critical cases
This commit is contained in:
+1
-1
@@ -74,7 +74,7 @@ mixin AuthenticationClientInteractionMixin {
|
||||
|
||||
dynamic handleException(dynamic exception) {
|
||||
if (exception is FlutterAppAuthPlatformException) {
|
||||
logError('$runtimeType::handleException: ErrorDetails = ${exception.platformErrorDetails.toString()}');
|
||||
logWarning('$runtimeType::handleException: ErrorDetails = ${exception.platformErrorDetails.toString()}');
|
||||
final errorCode = exception.platformErrorDetails.error;
|
||||
if (errorCode != null) {
|
||||
final oauthErrorCode = OAuthAuthorizationError.fromErrorCode(
|
||||
|
||||
+1
-1
@@ -92,7 +92,7 @@ class AuthenticationClientMobile with AuthenticationClientInteractionMixin
|
||||
throw AccessTokenInvalidException();
|
||||
}
|
||||
} catch (e) {
|
||||
logError('$runtimeType::refreshingTokensOIDC(): $e');
|
||||
logWarning('$runtimeType::refreshingTokensOIDC(): $e');
|
||||
throw handleException(e);
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -89,7 +89,7 @@ class AuthenticationClientWeb with AuthenticationClientInteractionMixin
|
||||
throw AccessTokenInvalidException();
|
||||
}
|
||||
} catch (e) {
|
||||
logError('$runtimeType::refreshingTokensOIDC(): $e');
|
||||
logWarning('$runtimeType::refreshingTokensOIDC(): $e');
|
||||
throw handleException(e);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user