Update LibraryItemController.js

standardizing log messages for all download cases
This commit is contained in:
ic1415 2024-08-05 16:33:56 -04:00 committed by GitHub
parent f3a453be20
commit ef2d736b20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -716,7 +716,7 @@ class LibraryItemController {
return res.sendStatus(403) return res.sendStatus(403)
} }
Logger.info(`[LibraryItemController] User "${req.user.username}" requested file download at "${libraryFile.metadata.path}"`) Logger.info(`[LibraryItemController] User "${req.user.username}" requested download for item "${req.libraryItem.media.metadata.title}" at "${libraryFile.metadata.path}"`)
if (global.XAccel) { if (global.XAccel) {
const encodedURI = encodeUriPath(global.XAccel + libraryFile.metadata.path) const encodedURI = encodeUriPath(global.XAccel + libraryFile.metadata.path)