Fix exception logging

This commit is contained in:
Bond_009
2018-12-20 13:11:26 +01:00
parent bf01918659
commit ea4c914123
123 changed files with 565 additions and 607 deletions

View File

@@ -300,7 +300,7 @@ namespace Emby.Server.Implementations.Channels
}
catch (Exception ex)
{
_logger.LogError("Error getting channel information for {0}", ex, channelInfo.Name);
_logger.LogError(ex, "Error getting channel information for {0}", channelInfo.Name);
}
numComplete++;
@@ -848,7 +848,7 @@ namespace Emby.Server.Implementations.Channels
}
catch (Exception ex)
{
_logger.LogError("Error writing to channel cache file: {0}", ex, path);
_logger.LogError(ex, "Error writing to channel cache file: {path}", path);
}
}
@@ -911,7 +911,7 @@ namespace Emby.Server.Implementations.Channels
}
catch (Exception ex)
{
_logger.LogError("Error retrieving channel item from database", ex);
_logger.LogError(ex, "Error retrieving channel item from database");
}
if (item == null)