From 37ff5005b47b9df2933a0b8812609a6c41faa170 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 28 Oct 2022 10:47:06 +0200 Subject: [PATCH] Add logger for uploadx --- server/lib/uploadx.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/lib/uploadx.ts b/server/lib/uploadx.ts index 9484eff75..cdbe7e473 100644 --- a/server/lib/uploadx.ts +++ b/server/lib/uploadx.ts @@ -1,4 +1,5 @@ import express from 'express' +import { buildLogger } from '@server/helpers/logger' import { getResumableUploadPath } from '@server/helpers/upload' import { Uploadx } from '@uploadx/core' @@ -10,6 +11,8 @@ const uploadx = new Uploadx({ // Could be big with thumbnails/previews maxMetadataSize: '10MB', + logger: buildLogger('uploadx'), + userIdentifier: (_, res: express.Response) => { if (!res.locals.oauth) return undefined