TF-4136 refactor(logging): replace logError with logWarning for non-critical cases
This commit is contained in:
@@ -42,7 +42,7 @@ mixin HandleSetErrorMixin {
|
||||
handlers!.firstWhere((handler) => handler.call(setError));
|
||||
return const None<MapEntry<Id, SetError>>();
|
||||
} catch (e) {
|
||||
logError('HandleSetErrorMixin::chainHandle(): [Exception] $e');
|
||||
logWarning('HandleSetErrorMixin::chainHandle(): [Exception] $e');
|
||||
return Some<MapEntry<Id, SetError>>(setError);
|
||||
}
|
||||
}
|
||||
@@ -50,7 +50,7 @@ mixin HandleSetErrorMixin {
|
||||
void _handleRemainedError(SetMethodErrorHandler? unCatchErrorHandler, Option<MapEntry<Id, SetError>> optionError) {
|
||||
final remainedError = optionError.toNullable();
|
||||
if (remainedError != null) {
|
||||
logError('HandleSetErrorMixin::_handleRemainedError(): $remainedError');
|
||||
logWarning('HandleSetErrorMixin::_handleRemainedError(): $remainedError');
|
||||
unCatchErrorHandler?.call(remainedError);
|
||||
}
|
||||
}
|
||||
@@ -73,7 +73,7 @@ mixin HandleSetErrorMixin {
|
||||
}
|
||||
);
|
||||
}
|
||||
logError('HandleSetErrorMixin::handleSetResponse():remainedErrors: $remainedErrors');
|
||||
logWarning('HandleSetErrorMixin::handleSetResponse():remainedErrors: $remainedErrors');
|
||||
return remainedErrors;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
|
||||
import 'package:core/utils/app_logger.dart';
|
||||
import 'package:core/utils/platform_info.dart';
|
||||
import 'package:core/utils/string_convert.dart';
|
||||
import 'package:external_app_launcher/external_app_launcher.dart';
|
||||
import 'package:rich_text_composer/views/commons/logger.dart';
|
||||
import 'package:url_launcher/url_launcher.dart' as launcher;
|
||||
|
||||
mixin LauncherApplicationMixin {
|
||||
@@ -28,7 +28,7 @@ mixin LauncherApplicationMixin {
|
||||
await openOtherApplication(uri);
|
||||
}
|
||||
} catch (e) {
|
||||
logError('LauncherApplicationMixin::launchApplication:Exception = $e');
|
||||
logWarning('LauncherApplicationMixin::launchApplication:Exception = $e');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user