Skip to content

Commit

Permalink
misc: add logging when moving
Browse files Browse the repository at this point in the history
Added debug logging when moving subtitle files and trickplay files from the VFS to the underlying library.
  • Loading branch information
revam committed Oct 29, 2024
1 parent bba9d7e commit 45473eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Shokofin/Resolvers/VirtualFileSystemService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1297,6 +1297,7 @@ private bool TryMoveSubtitleFile(IReadOnlyList<string> allKnownPaths, string sub
}
}
File.CreateSymbolicLink(subtitlePath, realSubtitlePath);
Logger.LogDebug("Moved {Path} to {RealPath}", subtitlePath, realSubtitlePath);

skip = false;
return true;
Expand Down Expand Up @@ -1384,6 +1385,7 @@ private bool TryMoveTrickplayDirectory(IReadOnlyList<string> allKnownPaths, stri
Directory.Delete(trickplayDirectory, recursive: true);
}
Directory.CreateSymbolicLink(trickplayDirectory, realPath);
Logger.LogDebug("Moved {Path} to {RealPath}", trickplayDirectory, realPath);

skip = false;
return true;
Expand Down

0 comments on commit 45473eb

Please sign in to comment.