Update Emby.Server.Implementations/EntryPoints/UdpServerEntryPoint.cs

Update log format message and log exception

Co-authored-by: Cody Robibero <cody@robibe.ro>
This commit is contained in:
Neil Burrows 2020-07-13 15:39:14 +01:00 committed by GitHub
parent 359b0044b8
commit 25e3827488
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,7 @@ namespace Emby.Server.Implementations.EntryPoints
} }
catch (System.Net.Sockets.SocketException ex) catch (System.Net.Sockets.SocketException ex)
{ {
_logger.LogWarning($"Unable to start AutoDiscovery listener on UDP port {PortNumber} - {ex.Message}"); _logger.LogWarning(ex, "Unable to start AutoDiscovery listener on UDP port {PortNumber}", PortNumber);
} }
return Task.CompletedTask; return Task.CompletedTask;