mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-27 01:46:25 -07:00
Better log
This commit is contained in:
parent
b6a7f25f73
commit
ad024e057b
1 changed files with 3 additions and 1 deletions
|
@ -9,7 +9,9 @@ const logger = new Logger('url-preview');
|
||||||
module.exports = async (ctx: Koa.BaseContext) => {
|
module.exports = async (ctx: Koa.BaseContext) => {
|
||||||
const meta = await fetchMeta();
|
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 {
|
try {
|
||||||
const summary = meta.summalyProxy ? await request.get({
|
const summary = meta.summalyProxy ? await request.get({
|
||||||
|
|
Loading…
Reference in a new issue