Make url preview log warn

This commit is contained in:
syuilo 2019-06-13 22:35:37 +09:00
parent 5e3cc0a3c6
commit fde9fc2891
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69

View file

@ -36,7 +36,7 @@ module.exports = async (ctx: Koa.BaseContext) => {
ctx.body = summary;
} catch (e) {
logger.error(`Failed to get preview of ${ctx.query.url}: ${e}`);
logger.warn(`Failed to get preview of ${ctx.query.url}: ${e}`);
ctx.status = 200;
ctx.set('Cache-Control', 'max-age=86400, immutable');
ctx.body = '{}';