From 8b729640860896ed47cfa3b2790f933e36b6fd9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-Xavier=20Thomas?= Date: Fri, 11 Oct 2019 23:40:19 +0200 Subject: [PATCH] Display file id and path in debug scanning logs --- .../java/org/airsonic/player/service/MediaFileService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/airsonic-main/src/main/java/org/airsonic/player/service/MediaFileService.java b/airsonic-main/src/main/java/org/airsonic/player/service/MediaFileService.java index 9ebbc6a8..8ba4fc78 100644 --- a/airsonic-main/src/main/java/org/airsonic/player/service/MediaFileService.java +++ b/airsonic-main/src/main/java/org/airsonic/player/service/MediaFileService.java @@ -153,10 +153,10 @@ public class MediaFileService { if (useFastCache || (mediaFile.getVersion() >= MediaFileDao.VERSION && !settingsService.isIgnoreFileTimestamps() && mediaFile.getChanged().getTime() >= FileUtil.lastModified(mediaFile.getFile()))) { - LOG.debug("Detected unmodified file"); + LOG.debug("Detected unmodified file (id {}, path {})", mediaFile.getId(), mediaFile.getPath()); return mediaFile; } - LOG.debug("Updating database file from disk"); + LOG.debug("Updating database file from disk (id {}, path {})", mediaFile.getId(), mediaFile.getPath()); mediaFile = createMediaFile(mediaFile.getFile()); mediaFileDao.createOrUpdateMediaFile(mediaFile); return mediaFile;