aboutsummaryrefslogtreecommitdiff
path: root/Emby.Notifications
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2018-12-20 13:11:26 +0100
committerBond_009 <bond.009@outlook.com>2018-12-30 22:44:39 +0100
commitea4c914123ba8279b9d9fcf7d5318e11f7a3da4c (patch)
tree455bf175270ffd7c1cb8f4e4ea0fb41851f7c59e /Emby.Notifications
parentbf01918659986cc6cbaefaebb67f607aeb1b4400 (diff)
Fix exception logging
Diffstat (limited to 'Emby.Notifications')
-rw-r--r--Emby.Notifications/NotificationManager.cs6
-rw-r--r--Emby.Notifications/Notifications.cs2
2 files changed, 4 insertions, 4 deletions
diff --git a/Emby.Notifications/NotificationManager.cs b/Emby.Notifications/NotificationManager.cs
index 209bc82aa..fa8fdd9c1 100644
--- a/Emby.Notifications/NotificationManager.cs
+++ b/Emby.Notifications/NotificationManager.cs
@@ -134,7 +134,7 @@ namespace Emby.Notifications
}
catch (Exception ex)
{
- _logger.LogError("Error sending notification to {0}", ex, service.Name);
+ _logger.LogError(ex, "Error sending notification to {0}", service.Name);
}
}
@@ -146,7 +146,7 @@ namespace Emby.Notifications
}
catch (Exception ex)
{
- _logger.LogError("Error in IsEnabledForUser", ex);
+ _logger.LogError(ex, "Error in IsEnabledForUser");
return false;
}
}
@@ -177,7 +177,7 @@ namespace Emby.Notifications
}
catch (Exception ex)
{
- _logger.LogError("Error in GetNotificationTypes", ex);
+ _logger.LogError(ex, "Error in GetNotificationTypes");
return new List<NotificationTypeInfo>();
}
diff --git a/Emby.Notifications/Notifications.cs b/Emby.Notifications/Notifications.cs
index ab78f9f91..c09c4d449 100644
--- a/Emby.Notifications/Notifications.cs
+++ b/Emby.Notifications/Notifications.cs
@@ -273,7 +273,7 @@ namespace Emby.Notifications
}
catch (Exception ex)
{
- _logger.LogError("Error sending notification", ex);
+ _logger.LogError(ex, "Error sending notification");
}
}