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

@@ -259,10 +259,9 @@ namespace MediaBrowser.Controller.Entities
{
return _libraryManager.GetGenre(i);
}
catch
catch (Exception ex)
{
// Full exception logged at lower levels
_logger.LogError("Error getting genre");
_logger.LogError(ex, "Error getting genre");
return null;
}
@@ -383,10 +382,9 @@ namespace MediaBrowser.Controller.Entities
{
return _libraryManager.GetGenre(i);
}
catch
catch (Exception ex)
{
// Full exception logged at lower levels
_logger.LogError("Error getting genre");
_logger.LogError(ex, "Error getting genre");
return null;
}