The Free Software Media System - Server Backend & API
catch ioexception and include stack trace
cviumf2cba352e58f
diff --git a/Emby.Server.Implementations/Library/LibraryManager.cs b/Emby.Server.Implementations/Library/LibraryManager.csindex 494eb59292..7f29e3e99a 100644--- a/Emby.Server.Implementations/Library/LibraryManager.cs+++ b/Emby.Server.Implementations/Library/LibraryManager.cs@@ -1917,14 +1917,14 @@ namespace Emby.Server.Implementations.Library_logger.LogWarning("Cannot get image index for {ImagePath}", img.Path);continue;}- catch (InvalidOperationException)+ catch (Exception ex) when (ex is InvalidOperationException || ex is IOException){- _logger.LogWarning("Cannot fetch image from {ImagePath}", img.Path);+ _logger.LogWarning(ex, "Cannot fetch image from {ImagePath}", img.Path);continue;}catch (HttpRequestException ex){- _logger.LogWarning("Cannot fetch image from {ImagePath}. Http status code: {HttpStatus}", img.Path, ex.StatusCode);+ _logger.LogWarning(ex, "Cannot fetch image from {ImagePath}. Http status code: {HttpStatus}", img.Path, ex.StatusCode);continue;}}