浏览代码

add startup logging

Luke Pulverenti 9 年之前
父节点
当前提交
41d551b35d
共有 1 个文件被更改,包括 9 次插入1 次删除
  1. 9 1
      MediaBrowser.Common.Implementations/BaseApplicationHost.cs

+ 9 - 1
MediaBrowser.Common.Implementations/BaseApplicationHost.cs

@@ -252,7 +252,15 @@ namespace MediaBrowser.Common.Implementations
             var innerProgress = new ActionableProgress<double>();
             innerProgress.RegisterAction(p => progress.Report(.8 * p + 15));
 
-            await RegisterResources(innerProgress).ConfigureAwait(false);
+            try
+            {
+                await RegisterResources(innerProgress).ConfigureAwait(false);
+            }
+            catch (Exception ex)
+            {
+                Logger.ErrorException("Error in RegisterResource", ex);
+                throw;
+            }
 
             FindParts();
             progress.Report(95);