aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2019-01-13 01:30:43 +0100
committerJoshua Boniface <joshua@boniface.me>2019-01-15 19:14:36 -0500
commit0ca76597e507bae3ee8713ccf55ff530a7a98978 (patch)
treec830784fd7811dcfe73e765a10f1304df46a846c
parent5348fddc9eb9584cbec4449273c0c356becfe354 (diff)
Add exception message to log.
Output will be something line: `Failed to bind to port 1900: Address already in use. DLNA will be unavailable`
-rw-r--r--RSSDP/SsdpCommunicationsServer.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/RSSDP/SsdpCommunicationsServer.cs b/RSSDP/SsdpCommunicationsServer.cs
index fb13298ee..f52667366 100644
--- a/RSSDP/SsdpCommunicationsServer.cs
+++ b/RSSDP/SsdpCommunicationsServer.cs
@@ -129,9 +129,9 @@ namespace Rssdp.Infrastructure
{
_BroadcastListenSocket = ListenForBroadcastsAsync();
}
- catch (SocketException)
+ catch (SocketException ex)
{
- _logger.LogError("Failed to bind to port 1900. DLNA will be unavailable");
+ _logger.LogError("Failed to bind to port 1900: {Message}. DLNA will be unavailable", ex.Message);
}
catch (Exception ex)
{