Add logger for uploadx
This commit is contained in:
parent
1b0a04dea8
commit
37ff5005b4
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue