浏览代码

Update error handling

TelepathicWalrus 1 年之前
父节点
当前提交
538f141b4c
共有 1 个文件被更改,包括 6 次插入2 次删除
  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);
                 }
-                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");
                 }
             }