Skip to content
This repository was archived by the owner on Apr 15, 2025. It is now read-only.

Commit 5d5d461

Browse files
committed
Switching console.error to console.warn on image server failures.
1 parent a17babf commit 5d5d461

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/FileSystem.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export class FileSystem {
201201
}
202202

203203
} catch (error) {
204-
console.error(error); // eslint-disable-line no-console
204+
console.warn(error); // eslint-disable-line no-console
205205
}
206206

207207
// Use content type header to determine extension.

lib/imageCacheHoc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export default function imageCacheHoc(Image, options = {}) {
155155
try {
156156
localFilePath = await this.fileSystem.getLocalFilePathFromUrl(traverse(this.props).get(['source', 'uri']), permanent);
157157
} catch (error) {
158-
console.error(error); // eslint-disable-line no-console
158+
console.warn(error); // eslint-disable-line no-console
159159
}
160160

161161
// Check component is still mounted to avoid calling setState() on components that were quickly

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-image-cache-hoc",
3-
"version": "1.4.1",
3+
"version": "1.4.2",
44
"description": "React Native Higher Order Component that adds advanced caching functionality to the react native Image component.",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)