aboutsummaryrefslogtreecommitdiff
path: root/RSSDP
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2019-01-13 01:30:43 +0100
committerBond_009 <bond.009@outlook.com>2019-01-13 01:31:55 +0100
commit81475e361b1665f895027feec9b4c0a4553f22dc (patch)
tree288b871aae5771ab35f3d10ed03443347ee1ed12 /RSSDP
parent783e74d9c9fd212497c40a5f9678552d85c9512c (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`
Diffstat (limited to 'RSSDP')
-rw-r--r--RSSDP/SsdpCommunicationsServer.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/RSSDP/SsdpCommunicationsServer.cs b/RSSDP/SsdpCommunicationsServer.cs
index c64b6d02f..2255ef35a 100644
--- a/RSSDP/SsdpCommunicationsServer.cs
+++ b/RSSDP/SsdpCommunicationsServer.cs
@@ -126,9 +126,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)
{