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
@@ -143,7 +143,7 @@ class DownloadManager {
);
}
} catch (exception) {
logError('DownloadManager::openDownloadedFileWeb(): ERROR: $exception');
logWarning('DownloadManager::openDownloadedFileWeb(): ERROR: $exception');
rethrow;
}
}
@@ -153,7 +153,7 @@ class DownloadManager {
final contentType = responseBody.headers[Headers.contentTypeHeader];
return MediaType.parse(contentType!.first);
} catch (e) {
logError('DownloadManager::_extractMediaTypeFromResponse(): $e');
logWarning('DownloadManager::_extractMediaTypeFromResponse(): $e');
return null;
}
}