mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-08 23:00:51 +02:00
Micro-fixes for logging instance creating exceptions
This commit is contained in:
parent
329e047803
commit
6b26d852be
|
@ -552,7 +552,7 @@ namespace MediaBrowser.Common.Implementations
|
|||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Logger.Error("Error creating {0}", ex, type.Name);
|
||||
Logger.ErrorException("Error creating {0}", ex, type.Name);
|
||||
|
||||
throw;
|
||||
}
|
||||
|
@ -571,7 +571,7 @@ namespace MediaBrowser.Common.Implementations
|
|||
}
|
||||
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
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue