소스 검색

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);