Merge pull request #512 from selfhost-alt/log-empty-folder-path-on-scan

Log full path when warning about empty root
This commit is contained in:
advplyr 2022-04-25 19:14:54 -05:00 committed by GitHub
commit d8ec3bd218
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,7 +144,7 @@ async function scanFolder(libraryMediaType, folder, serverSettings = {}) {
var libraryItemGrouping = groupFileItemsIntoLibraryItemDirs(libraryMediaType, fileItems)
if (!Object.keys(libraryItemGrouping).length) {
Logger.error('Root path has no media folders', fileItems.length)
Logger.error(`Root path has no media folders: ${folderPath}`)
return []
}