Skip to content

The Free Software Media System - Server Backend & API

Add exception message to log.

Bond-00981475e361b16
diff --git a/RSSDP/SsdpCommunicationsServer.cs b/RSSDP/SsdpCommunicationsServer.cs
index c64b6d02f3..2255ef35ab 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)
{