From 2bda4f1768b4f92d5012c28d8bb4b0c1989472da Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Mon, 25 Sep 2023 18:35:52 +0200 Subject: [PATCH] test: enable error logs for media --- .../src/server/api/mastodon/MastodonApiServerService.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/server/api/mastodon/MastodonApiServerService.ts b/packages/backend/src/server/api/mastodon/MastodonApiServerService.ts index 128cb3491a..c96c7a4618 100644 --- a/packages/backend/src/server/api/mastodon/MastodonApiServerService.ts +++ b/packages/backend/src/server/api/mastodon/MastodonApiServerService.ts @@ -143,7 +143,7 @@ export class MastodonApiServerService { const data = await client.uploadMedia(multipartData); reply.send(convertAttachment(data.data as Entity.Attachment)); } catch (e: any) { - /* console.error(e); */ + console.error(e); reply.code(401).send(e.response.data); } }); @@ -158,10 +158,11 @@ export class MastodonApiServerService { reply.code(401).send({ error: 'No image' }); return; } + console.error(_request.body); const data = await client.uploadMedia(multipartData, _request.body!); reply.send(convertAttachment(data.data as Entity.Attachment)); } catch (e: any) { - /* console.error(e); */ + console.error(e); reply.code(401).send(e.response.data); } });