1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-01 15:45:58 +09:00

Better log

This commit is contained in:
syuilo 2019-03-01 14:40:29 +09:00
parent 0c28ac4907
commit 4685de88a7
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -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({