mirror of
https://github.com/laurent22/joplin.git
synced 2026-06-18 20:16:34 +02:00
Server: Downgrade unsupported image format log to info level
This commit is contained in:
@@ -320,7 +320,7 @@ export async function createResourcesFromPaths(mediaFiles: DownloadedMediaFile[]
|
|||||||
const resource = await shim.createResourceFromPath(mediaFile.path);
|
const resource = await shim.createResourceFromPath(mediaFile.path);
|
||||||
return { ...mediaFile, resource };
|
return { ...mediaFile, resource };
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.warn(`Cannot create resource for ${mediaFile.originalUrl}`, error);
|
logger.info(`Cannot create resource for ${mediaFile.originalUrl}`, error);
|
||||||
return { ...mediaFile, resource: null };
|
return { ...mediaFile, resource: null };
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user