Add exception message to log.

Output will be something line: `Failed to bind to port 1900: Address already in use. DLNA will be unavailable`
pull/1154/head
Bond-009 6 years ago committed by Joshua Boniface
parent 5348fddc9e
commit 0ca76597e5

@ -129,9 +129,9 @@ namespace Rssdp.Infrastructure
{ {
_BroadcastListenSocket = ListenForBroadcastsAsync(); _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) catch (Exception ex)
{ {

Loading…
Cancel
Save