From fde9fc28912a312e8bceac897df64cdd970795af Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 13 Jun 2019 22:35:37 +0900 Subject: [PATCH] Make url preview log warn --- src/server/web/url-preview.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/web/url-preview.ts b/src/server/web/url-preview.ts index cdb6f13f59..e5b9ff6244 100644 --- a/src/server/web/url-preview.ts +++ b/src/server/web/url-preview.ts @@ -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 = '{}';