Browse Source

Update error handling

TelepathicWalrus 1 year ago
parent
commit
538f141b4c
1 changed files with 6 additions and 2 deletions
  1. 6 2
      Emby.Server.Implementations/Library/LiveStreamHelper.cs

+ 6 - 2
Emby.Server.Implementations/Library/LiveStreamHelper.cs

@@ -64,9 +64,13 @@ namespace Emby.Server.Implementations.Library
 
 
                     await jsonStream.DisposeAsync().ConfigureAwait(false);
                     await jsonStream.DisposeAsync().ConfigureAwait(false);
                 }
                 }
-                catch
+                catch (IOException)
                 {
                 {
-                    _logger.LogError("Could not open cached media info");
+                    _logger.LogDebug("Could not open cached media info");
+                }
+                catch (Exception ex)
+                {
+                    _logger.LogError(ex, "Error opening cached media info");
                 }
                 }
             }
             }