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

@@ -36,7 +36,7 @@ namespace Emby.Server.Implementations.Networking
}
catch (Exception ex)
{
Logger.LogError("Error binding to NetworkAddressChanged event", ex);
Logger.LogError(ex, "Error binding to NetworkAddressChanged event");
}
try
@@ -45,7 +45,7 @@ namespace Emby.Server.Implementations.Networking
}
catch (Exception ex)
{
Logger.LogError("Error binding to NetworkChange_NetworkAvailabilityChanged event", ex);
Logger.LogError(ex, "Error binding to NetworkChange_NetworkAvailabilityChanged event");
}
}
}
@@ -372,7 +372,7 @@ namespace Emby.Server.Implementations.Networking
}
catch (Exception ex)
{
Logger.LogError("Error resovling hostname", ex);
Logger.LogError(ex, "Error resolving hostname");
}
}
}
@@ -399,7 +399,7 @@ namespace Emby.Server.Implementations.Networking
}
catch (Exception ex)
{
Logger.LogError("Error in GetAllNetworkInterfaces", ex);
Logger.LogError(ex, "Error in GetAllNetworkInterfaces");
return new List<IPAddress>();
}
@@ -428,7 +428,7 @@ namespace Emby.Server.Implementations.Networking
}
catch (Exception ex)
{
Logger.LogError("Error querying network interface", ex);
Logger.LogError(ex, "Error querying network interface");
return new List<IPAddress>();
}