aboutsummaryrefslogtreecommitdiff
path: root/Emby.Dlna
diff options
context:
space:
mode:
Diffstat (limited to 'Emby.Dlna')
-rw-r--r--Emby.Dlna/Didl/DidlBuilder.cs8
-rw-r--r--Emby.Dlna/DlnaManager.cs6
-rw-r--r--Emby.Dlna/Main/DlnaEntryPoint.cs12
-rw-r--r--Emby.Dlna/PlayTo/Device.cs6
-rw-r--r--Emby.Dlna/PlayTo/PlayToController.cs10
-rw-r--r--Emby.Dlna/PlayTo/PlayToManager.cs2
-rw-r--r--Emby.Dlna/Service/BaseControlHandler.cs2
7 files changed, 23 insertions, 23 deletions
diff --git a/Emby.Dlna/Didl/DidlBuilder.cs b/Emby.Dlna/Didl/DidlBuilder.cs
index 2cde379eaa..6de35b8426 100644
--- a/Emby.Dlna/Didl/DidlBuilder.cs
+++ b/Emby.Dlna/Didl/DidlBuilder.cs
@@ -913,9 +913,9 @@ namespace Emby.Dlna.Didl
writer.WriteFullEndElement();
}
- catch (XmlException)
+ catch (XmlException ex)
{
- _logger.LogError("Error adding xml value: {value}", name);
+ _logger.LogError(ex, "Error adding xml value: {value}", name);
}
}
@@ -925,9 +925,9 @@ namespace Emby.Dlna.Didl
{
writer.WriteElementString(prefix, name, namespaceUri, value);
}
- catch (XmlException)
+ catch (XmlException ex)
{
- _logger.LogError("Error adding xml value: {value}", value);
+ _logger.LogError(ex, "Error adding xml value: {value}", value);
}
}
diff --git a/Emby.Dlna/DlnaManager.cs b/Emby.Dlna/DlnaManager.cs
index 4c5bde6cd4..eae4f32716 100644
--- a/Emby.Dlna/DlnaManager.cs
+++ b/Emby.Dlna/DlnaManager.cs
@@ -58,7 +58,7 @@ namespace Emby.Dlna
}
catch (Exception ex)
{
- _logger.LogError("Error extracting DLNA profiles.", ex);
+ _logger.LogError(ex, "Error extracting DLNA profiles.");
}
}
@@ -198,7 +198,7 @@ namespace Emby.Dlna
}
catch (ArgumentException ex)
{
- _logger.LogError("Error evaluating regex pattern {0}", ex, pattern);
+ _logger.LogError(ex, "Error evaluating regex pattern {0}", pattern);
return false;
}
}
@@ -324,7 +324,7 @@ namespace Emby.Dlna
}
catch (Exception ex)
{
- _logger.LogError("Error parsing profile file: {0}", ex, path);
+ _logger.LogError(ex, "Error parsing profile file: {0}", path);
return null;
}
diff --git a/Emby.Dlna/Main/DlnaEntryPoint.cs b/Emby.Dlna/Main/DlnaEntryPoint.cs
index 4697287e9b..6ab0767a5a 100644
--- a/Emby.Dlna/Main/DlnaEntryPoint.cs
+++ b/Emby.Dlna/Main/DlnaEntryPoint.cs
@@ -185,7 +185,7 @@ namespace Emby.Dlna.Main
}
catch (Exception ex)
{
- _logger.LogError("Error starting ssdp handlers", ex);
+ _logger.LogError(ex, "Error starting ssdp handlers");
}
}
@@ -202,7 +202,7 @@ namespace Emby.Dlna.Main
}
catch (Exception ex)
{
- _logger.LogError("Error starting device discovery", ex);
+ _logger.LogError(ex, "Error starting device discovery");
}
}
@@ -215,7 +215,7 @@ namespace Emby.Dlna.Main
}
catch (Exception ex)
{
- _logger.LogError("Error stopping device discovery", ex);
+ _logger.LogError(ex, "Error stopping device discovery");
}
}
@@ -243,7 +243,7 @@ namespace Emby.Dlna.Main
}
catch (Exception ex)
{
- _logger.LogError("Error registering endpoint", ex);
+ _logger.LogError(ex, "Error registering endpoint");
}
}
@@ -361,7 +361,7 @@ namespace Emby.Dlna.Main
}
catch (Exception ex)
{
- _logger.LogError("Error starting PlayTo manager", ex);
+ _logger.LogError(ex, "Error starting PlayTo manager");
}
}
}
@@ -379,7 +379,7 @@ namespace Emby.Dlna.Main
}
catch (Exception ex)
{
- _logger.LogError("Error disposing PlayTo manager", ex);
+ _logger.LogError(ex, "Error disposing PlayTo manager");
}
_manager = null;
}
diff --git a/Emby.Dlna/PlayTo/Device.cs b/Emby.Dlna/PlayTo/Device.cs
index 1cbb69d1da..a1df90ec03 100644
--- a/Emby.Dlna/PlayTo/Device.cs
+++ b/Emby.Dlna/PlayTo/Device.cs
@@ -140,7 +140,7 @@ namespace Emby.Dlna.PlayTo
}
catch (Exception ex)
{
- _logger.LogError("Error updating device volume info for {0}", ex, Properties.Name);
+ _logger.LogError(ex, "Error updating device volume info for {0}", Properties.Name);
}
}
@@ -507,7 +507,7 @@ namespace Emby.Dlna.PlayTo
if (_disposed)
return;
- //_logger.LogError("Error updating device info for {0}", ex, Properties.Name);
+ //_logger.LogError(ex, "Error updating device info for {0}", Properties.Name);
_connectFailureCount++;
@@ -767,7 +767,7 @@ namespace Emby.Dlna.PlayTo
}
catch (Exception ex)
{
- _logger.LogError("Unable to parse xml {0}", ex, trackString);
+ _logger.LogError(ex, "Unable to parse xml {0}", trackString);
return new Tuple<bool, uBaseObject>(true, null);
}
}
diff --git a/Emby.Dlna/PlayTo/PlayToController.cs b/Emby.Dlna/PlayTo/PlayToController.cs
index e722f83d81..c51f220ef5 100644
--- a/Emby.Dlna/PlayTo/PlayToController.cs
+++ b/Emby.Dlna/PlayTo/PlayToController.cs
@@ -156,7 +156,7 @@ namespace Emby.Dlna.PlayTo
}
catch (Exception ex)
{
- _logger.LogError("Error reporting progress", ex);
+ _logger.LogError(ex, "Error reporting progress");
}
}
@@ -204,7 +204,7 @@ namespace Emby.Dlna.PlayTo
}
catch (Exception ex)
{
- _logger.LogError("Error reporting playback stopped", ex);
+ _logger.LogError(ex, "Error reporting playback stopped");
}
}
@@ -223,7 +223,7 @@ namespace Emby.Dlna.PlayTo
}
catch (Exception ex)
{
- _logger.LogError("Error reporting progress", ex);
+ _logger.LogError(ex, "Error reporting progress");
}
}
@@ -247,7 +247,7 @@ namespace Emby.Dlna.PlayTo
}
catch (Exception ex)
{
- _logger.LogError("Error reporting progress", ex);
+ _logger.LogError(ex, "Error reporting progress");
}
}
@@ -278,7 +278,7 @@ namespace Emby.Dlna.PlayTo
}
catch (Exception ex)
{
- _logger.LogError("Error reporting progress", ex);
+ _logger.LogError(ex, "Error reporting progress");
}
}
diff --git a/Emby.Dlna/PlayTo/PlayToManager.cs b/Emby.Dlna/PlayTo/PlayToManager.cs
index 0384d8f11c..47d00aad56 100644
--- a/Emby.Dlna/PlayTo/PlayToManager.cs
+++ b/Emby.Dlna/PlayTo/PlayToManager.cs
@@ -121,7 +121,7 @@ namespace Emby.Dlna.PlayTo
}
catch (Exception ex)
{
- _logger.LogError("Error creating PlayTo device.", ex);
+ _logger.LogError(ex, "Error creating PlayTo device.");
}
finally
{
diff --git a/Emby.Dlna/Service/BaseControlHandler.cs b/Emby.Dlna/Service/BaseControlHandler.cs
index 55fe7fb80d..ae094cc2f6 100644
--- a/Emby.Dlna/Service/BaseControlHandler.cs
+++ b/Emby.Dlna/Service/BaseControlHandler.cs
@@ -52,7 +52,7 @@ namespace Emby.Dlna.Service
}
catch (Exception ex)
{
- _logger.LogError("Error processing control request", ex);
+ _logger.LogError(ex, "Error processing control request");
return new ControlErrorHandler().GetResponse(ex);
}