From a45d1cf6c5dd22a74c7d2873299f8c50f6fd6b2a Mon Sep 17 00:00:00 2001 From: ic1415 <63030270+ic1415@users.noreply.github.com> Date: Wed, 31 Jul 2024 10:17:22 -0400 Subject: [PATCH] Update LibraryItemController.js add logging to ebook specific download path --- server/controllers/LibraryItemController.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/controllers/LibraryItemController.js b/server/controllers/LibraryItemController.js index 544209788..f7d1538ab 100644 --- a/server/controllers/LibraryItemController.js +++ b/server/controllers/LibraryItemController.js @@ -738,7 +738,9 @@ class LibraryItemController { return res.sendStatus(404) } const ebookFilePath = ebookFile.metadata.path - + + Logger.info(`[LibraryItemController] User "${req.user.username}" requested download for item "${ebookFile.metadata.title}" at "${ebookFilePath}"`) + if (global.XAccel) { const encodedURI = encodeUriPath(global.XAccel + ebookFilePath) Logger.debug(`Use X-Accel to serve static file ${encodedURI}`)