1
0
Fork 0

Add logger for uploadx

This commit is contained in:
Chocobozzz 2022-10-28 10:47:06 +02:00
parent 1b0a04dea8
commit 37ff5005b4
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -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