mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-01 11:23:36 +02:00
Increase delete logging
This commit is contained in:
parent
0140262e2f
commit
e152a6c82f
|
@ -341,7 +341,7 @@ namespace Emby.Server.Implementations.Library
|
||||||
if (item is LiveTvProgram)
|
if (item is LiveTvProgram)
|
||||||
{
|
{
|
||||||
_logger.LogDebug(
|
_logger.LogDebug(
|
||||||
"Deleting item, Type: {0}, Name: {1}, Path: {2}, Id: {3}",
|
"Removing item, Type: {0}, Name: {1}, Path: {2}, Id: {3}",
|
||||||
item.GetType().Name,
|
item.GetType().Name,
|
||||||
item.Name ?? "Unknown name",
|
item.Name ?? "Unknown name",
|
||||||
item.Path ?? string.Empty,
|
item.Path ?? string.Empty,
|
||||||
|
@ -350,7 +350,7 @@ namespace Emby.Server.Implementations.Library
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_logger.LogInformation(
|
_logger.LogInformation(
|
||||||
"Deleting item, Type: {0}, Name: {1}, Path: {2}, Id: {3}",
|
"Removing item, Type: {0}, Name: {1}, Path: {2}, Id: {3}",
|
||||||
item.GetType().Name,
|
item.GetType().Name,
|
||||||
item.Name ?? "Unknown name",
|
item.Name ?? "Unknown name",
|
||||||
item.Path ?? string.Empty,
|
item.Path ?? string.Empty,
|
||||||
|
@ -368,7 +368,12 @@ namespace Emby.Server.Implementations.Library
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
_logger.LogDebug("Deleting path {MetadataPath}", metadataPath);
|
_logger.LogDebug(
|
||||||
|
"Deleting metadata path, Type: {0}, Name: {1}, Path: {2}, Id: {3}",
|
||||||
|
item.GetType().Name,
|
||||||
|
item.Name ?? "Unknown name",
|
||||||
|
metadataPath,
|
||||||
|
item.Id);
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -392,7 +397,13 @@ namespace Emby.Server.Implementations.Library
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
_logger.LogDebug("Deleting path {path}", fileSystemInfo.FullName);
|
_logger.LogInformation(
|
||||||
|
"Deleting item path, Type: {0}, Name: {1}, Path: {2}, Id: {3}",
|
||||||
|
item.GetType().Name,
|
||||||
|
item.Name ?? "Unknown name",
|
||||||
|
fileSystemInfo.FullName,
|
||||||
|
item.Id);
|
||||||
|
|
||||||
if (fileSystemInfo.IsDirectory)
|
if (fileSystemInfo.IsDirectory)
|
||||||
{
|
{
|
||||||
Directory.Delete(fileSystemInfo.FullName, true);
|
Directory.Delete(fileSystemInfo.FullName, true);
|
||||||
|
|
Loading…
Reference in a new issue