Skip to content

The Free Software Media System - Server Backend & API

Add exception message to log.

Bond-0090ca76597e507
diff --git a/RSSDP/SsdpCommunicationsServer.cs b/RSSDP/SsdpCommunicationsServer.cs
index fb13298eef..f526673660 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)
{