From 9eb0ec76fe4c017a73d7dae95d1ecad235e8b546 Mon Sep 17 00:00:00 2001 From: ic1415 <63030270+ic1415@users.noreply.github.com> Date: Wed, 31 Jul 2024 10:48:41 -0400 Subject: [PATCH] Update LibraryItemController.js update library item controller to log downloaded ebooks to fix #3215 --- server/controllers/LibraryItemController.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/controllers/LibraryItemController.js b/server/controllers/LibraryItemController.js index 54420978..60d41b23 100644 --- a/server/controllers/LibraryItemController.js +++ b/server/controllers/LibraryItemController.js @@ -738,6 +738,8 @@ 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)