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
@@ -66,7 +66,7 @@ class CleanUpPublicAssetsInteractor {
yield Right(CleanUpPublicAssetsSuccessState());
} catch (exception) {
logError('CleanUpPublicAssetsInteractor::execute():error: $exception');
logWarning('CleanUpPublicAssetsInteractor::execute():error: $exception');
yield Left(CleanUpPublicAssetsFailureState(exception: exception));
}
}
@@ -32,7 +32,7 @@ class CreatePublicAssetInteractor {
identityId: identityId);
yield Right<Failure, Success>(CreatePublicAssetSuccessState(publicAsset));
} catch (exception) {
logError('CreatePublicAssetInteractor::execute():error: $exception');
logWarning('CreatePublicAssetInteractor::execute():error: $exception');
if (exception is PublicAssetQuotaExceededException) {
yield Left<Failure, Success>(PublicAssetOverQuotaFailureState(
@@ -26,7 +26,7 @@ class DeletePublicAssetsInteractor {
publicAssetIds: publicAssetIds);
yield Right(DeletePublicAssetsSuccessState());
} catch (exception) {
logError('DeletePublicAssetsInteractor::execute():error: $exception');
logWarning('DeletePublicAssetsInteractor::execute():error: $exception');
yield Left(DeletePublicAssetsFailureState(exception: exception));
}
}