Fix argument is not used in message template warning

This commit is contained in:
Stepan Goremykin 2023-04-06 19:05:05 +02:00
parent 7d7e177265
commit 1c0bb828d2
2 changed files with 3 additions and 3 deletions

View File

@ -606,7 +606,7 @@ namespace Emby.Server.Implementations.Session
} }
catch (Exception ex) catch (Exception ex)
{ {
_logger.LogDebug("Error calling OnPlaybackStopped", ex); _logger.LogDebug(ex, "Error calling OnPlaybackStopped");
} }
} }
@ -953,7 +953,7 @@ namespace Emby.Server.Implementations.Session
} }
catch (Exception ex) catch (Exception ex)
{ {
_logger.LogError("Error closing live stream", ex); _logger.LogError(ex, "Error closing live stream");
} }
} }

View File

@ -449,7 +449,7 @@ namespace MediaBrowser.MediaEncoding.Subtitles
{ {
try try
{ {
_logger.LogInformation("Deleting converted subtitle due to failure: ", outputPath); _logger.LogInformation("Deleting converted subtitle due to failure: {Path}", outputPath);
_fileSystem.DeleteFile(outputPath); _fileSystem.DeleteFile(outputPath);
} }
catch (IOException ex) catch (IOException ex)