mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-21 21:20:39 +02:00
update logging
This commit is contained in:
parent
7291b8d3e4
commit
ba3f23bad4
|
@ -144,7 +144,7 @@ namespace MediaBrowser.Server.Implementations.Persistence
|
||||||
|
|
||||||
if (item != null)
|
if (item != null)
|
||||||
{
|
{
|
||||||
_logger.Debug("Cleaning item {0} type: {1} path: {2}", item.Name, item.GetType().Name, item.Path ?? string.Empty);
|
_logger.Info("Cleaning item {0} type: {1} path: {2}", item.Name, item.GetType().Name, item.Path ?? string.Empty);
|
||||||
|
|
||||||
await _libraryManager.DeleteItem(item, new DeleteOptions
|
await _libraryManager.DeleteItem(item, new DeleteOptions
|
||||||
{
|
{
|
||||||
|
@ -198,6 +198,8 @@ namespace MediaBrowser.Server.Implementations.Persistence
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_logger.Info("Deleting item from database {0} because path no longer exists. type: {1} path: {2}", libraryItem.Name, libraryItem.GetType().Name, libraryItem.Path ?? string.Empty);
|
||||||
|
|
||||||
await _libraryManager.DeleteItem(libraryItem, new DeleteOptions
|
await _libraryManager.DeleteItem(libraryItem, new DeleteOptions
|
||||||
{
|
{
|
||||||
DeleteFileLocation = false
|
DeleteFileLocation = false
|
||||||
|
|
Loading…
Reference in a new issue