mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-25 06:27:15 -04:00
Fix exception logging
This commit is contained in:
parent
bf01918659
commit
ea4c914123
123 changed files with 565 additions and 607 deletions
|
@ -685,7 +685,7 @@ namespace Emby.Server.Implementations.HttpClientManager
|
|||
{
|
||||
if (options.LogErrors)
|
||||
{
|
||||
_logger.LogError("Error " + webException.Status + " getting response from " + options.Url, webException);
|
||||
_logger.LogError(webException, "Error {status} getting response from {url}", webException.Status, options.Url);
|
||||
}
|
||||
|
||||
var exception = new HttpException(webException.Message, webException);
|
||||
|
@ -723,7 +723,7 @@ namespace Emby.Server.Implementations.HttpClientManager
|
|||
|
||||
if (options.LogErrors)
|
||||
{
|
||||
_logger.LogError("Error getting response from " + options.Url, ex);
|
||||
_logger.LogError(ex, "Error getting response from {url}", options.Url);
|
||||
}
|
||||
|
||||
return ex;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue