diff options
author | Chocobozzz <me@florianbigard.com> | 2022-10-28 10:47:06 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-10-28 10:47:06 +0200 |
commit | 37ff5005b47b9df2933a0b8812609a6c41faa170 (patch) | |
tree | 353992ba2ce0c11d9d2ad278f8aa83ecca9f4666 /server/lib | |
parent | 1b0a04dea8540158712167eec7fad8bc5af7c321 (diff) | |
download | PeerTube-37ff5005b47b9df2933a0b8812609a6c41faa170.tar.gz PeerTube-37ff5005b47b9df2933a0b8812609a6c41faa170.tar.zst PeerTube-37ff5005b47b9df2933a0b8812609a6c41faa170.zip |
Add logger for uploadx
Diffstat (limited to 'server/lib')
-rw-r--r-- | server/lib/uploadx.ts | 3 |
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 @@ | |||
1 | import express from 'express' | 1 | import express from 'express' |
2 | import { buildLogger } from '@server/helpers/logger' | ||
2 | import { getResumableUploadPath } from '@server/helpers/upload' | 3 | import { getResumableUploadPath } from '@server/helpers/upload' |
3 | import { Uploadx } from '@uploadx/core' | 4 | import { 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 | ||