mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 09:33:08 +02:00
Make url preview log warn
This commit is contained in:
parent
5e3cc0a3c6
commit
fde9fc2891
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue