mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 17:03:49 +01:00
Make url preview log warn
This commit is contained in:
parent
152f14b434
commit
9fa2223fa7
@ -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 = '{}';
|
||||
|
Loading…
Reference in New Issue
Block a user