aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-10-28 10:47:06 +0200
committerChocobozzz <me@florianbigard.com>2022-10-28 10:47:06 +0200
commit37ff5005b47b9df2933a0b8812609a6c41faa170 (patch)
tree353992ba2ce0c11d9d2ad278f8aa83ecca9f4666 /server
parent1b0a04dea8540158712167eec7fad8bc5af7c321 (diff)
downloadPeerTube-37ff5005b47b9df2933a0b8812609a6c41faa170.tar.gz
PeerTube-37ff5005b47b9df2933a0b8812609a6c41faa170.tar.zst
PeerTube-37ff5005b47b9df2933a0b8812609a6c41faa170.zip
Add logger for uploadx
Diffstat (limited to 'server')
-rw-r--r--server/lib/uploadx.ts3
1 files changed, 3 insertions, 0 deletions
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 @@
1import express from 'express' 1import express from 'express'
2import { buildLogger } from '@server/helpers/logger'
2import { getResumableUploadPath } from '@server/helpers/upload' 3import { getResumableUploadPath } from '@server/helpers/upload'
3import { Uploadx } from '@uploadx/core' 4import { Uploadx } from '@uploadx/core'
4 5
@@ -10,6 +11,8 @@ const uploadx = new Uploadx({
10 // Could be big with thumbnails/previews 11 // Could be big with thumbnails/previews
11 maxMetadataSize: '10MB', 12 maxMetadataSize: '10MB',
12 13
14 logger: buildLogger('uploadx'),
15
13 userIdentifier: (_, res: express.Response) => { 16 userIdentifier: (_, res: express.Response) => {
14 if (!res.locals.oauth) return undefined 17 if (!res.locals.oauth) return undefined
15 18