From 4685de88a729a11e5da2d63d682b5dd4a6005616 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 1 Mar 2019 14:40:29 +0900 Subject: [PATCH] Better log --- src/server/web/url-preview.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/server/web/url-preview.ts b/src/server/web/url-preview.ts index 7ab703687..9fda5f16f 100644 --- a/src/server/web/url-preview.ts +++ b/src/server/web/url-preview.ts @@ -9,7 +9,9 @@ const logger = new Logger('url-preview'); module.exports = async (ctx: Koa.BaseContext) => { const meta = await fetchMeta(); - logger.info(`Getting preview of ${ctx.query.url} ...`); + logger.info(meta.summalyProxy + ? `(Proxy) Getting preview of ${ctx.query.url} ...` + : `Getting preview of ${ctx.query.url} ...`); try { const summary = meta.summalyProxy ? await request.get({