mirror of https://github.com/Chocobozzz/PeerTube
Add logger for uploadx
parent
1b0a04dea8
commit
37ff5005b4
|
@ -1,4 +1,5 @@
|
||||||
import express from 'express'
|
import express from 'express'
|
||||||
|
import { buildLogger } from '@server/helpers/logger'
|
||||||
import { getResumableUploadPath } from '@server/helpers/upload'
|
import { getResumableUploadPath } from '@server/helpers/upload'
|
||||||
import { Uploadx } from '@uploadx/core'
|
import { Uploadx } from '@uploadx/core'
|
||||||
|
|
||||||
|
@ -10,6 +11,8 @@ const uploadx = new Uploadx({
|
||||||
// Could be big with thumbnails/previews
|
// Could be big with thumbnails/previews
|
||||||
maxMetadataSize: '10MB',
|
maxMetadataSize: '10MB',
|
||||||
|
|
||||||
|
logger: buildLogger('uploadx'),
|
||||||
|
|
||||||
userIdentifier: (_, res: express.Response) => {
|
userIdentifier: (_, res: express.Response) => {
|
||||||
if (!res.locals.oauth) return undefined
|
if (!res.locals.oauth) return undefined
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue