aboutsummaryrefslogtreecommitdiff
path: root/RSSDP/SsdpCommunicationsServer.cs
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2019-01-07 00:47:06 -0500
committerGitHub <noreply@github.com>2019-01-07 00:47:06 -0500
commitc986340c02cb0b7fe06569d25a1b5d1c8375f7f6 (patch)
tree4971c970bbdb797cc5b3da2d8bae506231b173a5 /RSSDP/SsdpCommunicationsServer.cs
parent76b647e0a8eddd65dc9c4de7b887a3faf6e12bcc (diff)
parent0b804629b85498370c882f5562dfc7acd84bfd11 (diff)
Merge pull request #419 from jellyfin/dev
Master 10.0.0
Diffstat (limited to 'RSSDP/SsdpCommunicationsServer.cs')
-rw-r--r--RSSDP/SsdpCommunicationsServer.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/RSSDP/SsdpCommunicationsServer.cs b/RSSDP/SsdpCommunicationsServer.cs
index bc8594649..65ec0ca71 100644
--- a/RSSDP/SsdpCommunicationsServer.cs
+++ b/RSSDP/SsdpCommunicationsServer.cs
@@ -7,7 +7,7 @@ using System.Text;
using System.Threading;
using System.Threading.Tasks;
using MediaBrowser.Common.Net;
-using MediaBrowser.Model.Logging;
+using Microsoft.Extensions.Logging;
using MediaBrowser.Model.Net;
namespace Rssdp.Infrastructure
@@ -131,7 +131,7 @@ namespace Rssdp.Infrastructure
}
catch (Exception ex)
{
- _logger.ErrorException("Error in BeginListeningForBroadcasts", ex);
+ _logger.LogError(ex, "Error in BeginListeningForBroadcasts");
}
}
}
@@ -148,7 +148,7 @@ namespace Rssdp.Infrastructure
{
if (_BroadcastListenSocket != null)
{
- _logger.Info("{0} disposing _BroadcastListenSocket.", GetType().Name);
+ _logger.LogInformation("{0} disposing _BroadcastListenSocket.", GetType().Name);
_BroadcastListenSocket.Dispose();
_BroadcastListenSocket = null;
}
@@ -197,7 +197,7 @@ namespace Rssdp.Infrastructure
}
catch (Exception ex)
{
- _logger.ErrorException("Error sending socket message from {0} to {1}", ex, socket.LocalIPAddress.ToString(), destination.ToString());
+ _logger.LogError(ex, "Error sending socket message from {0} to {1}", socket.LocalIPAddress.ToString(), destination.ToString());
}
}
@@ -282,11 +282,11 @@ namespace Rssdp.Infrastructure
var sockets = _sendSockets.ToList();
_sendSockets = null;
- _logger.Info("{0} Disposing {1} sendSockets", GetType().Name, sockets.Count);
+ _logger.LogInformation("{0} Disposing {1} sendSockets", GetType().Name, sockets.Count);
foreach (var socket in sockets)
{
- _logger.Info("{0} disposing sendSocket from {1}", GetType().Name, socket.LocalIPAddress);
+ _logger.LogInformation("{0} disposing sendSocket from {1}", GetType().Name, socket.LocalIPAddress);
socket.Dispose();
}
}
@@ -376,7 +376,7 @@ namespace Rssdp.Infrastructure
}
catch (Exception ex)
{
- _logger.ErrorException("Error in CreateSsdpUdpSocket. IPAddress: {0}", ex, address);
+ _logger.LogError(ex, "Error in CreateSsdpUdpSocket. IPAddress: {0}", address);
}
}
}
@@ -508,4 +508,4 @@ namespace Rssdp.Infrastructure
#endregion
}
-} \ No newline at end of file
+}