Merge pull request #1754 from softworkz/MiniFix

Micro-fixes for logging instance creation exceptions
This commit is contained in:
Luke 2016-05-21 19:04:38 -04:00
commit aa7bd9f919
2 changed files with 3 additions and 3 deletions

View file

@ -552,7 +552,7 @@ namespace MediaBrowser.Common.Implementations
} }
catch (Exception ex) catch (Exception ex)
{ {
Logger.Error("Error creating {0}", ex, type.Name); Logger.ErrorException("Error creating {0}", ex, type.Name);
throw; throw;
} }
@ -571,7 +571,7 @@ namespace MediaBrowser.Common.Implementations
} }
catch (Exception ex) catch (Exception ex)
{ {
Logger.Error("Error creating {0}", ex, type.Name); Logger.ErrorException("Error creating {0}", ex, type.Name);
// Don't blow up in release mode // Don't blow up in release mode
return null; return null;
} }

View file

@ -338,7 +338,7 @@ namespace MediaBrowser.Server.Startup.Common
} }
catch (Exception ex) catch (Exception ex)
{ {
Logger.ErrorException("Error in {0}", ex, entryPoint.GetType().Name); Logger.ErrorException("Error in {0}", ex, entryPoint.GetType().FullName);
} }
}); });