update logging

This commit is contained in:
Luke Pulverenti 2017-10-05 14:10:46 -04:00
parent 51ca72ab5d
commit 9707712d39
2 changed files with 7 additions and 8 deletions

View File

@ -139,6 +139,10 @@ namespace Emby.Server.Implementations.LiveTv.TunerHosts
try try
{ {
stream.Seek(offset, SeekOrigin.End); stream.Seek(offset, SeekOrigin.End);
}
catch (IOException)
{
} }
catch (ArgumentException) catch (ArgumentException)
{ {

View File

@ -29,7 +29,7 @@ namespace Emby.Server.Implementations.Networking
public List<IpAddressInfo> GetLocalIpAddresses() public List<IpAddressInfo> GetLocalIpAddresses()
{ {
const int cacheMinutes = 5; const int cacheMinutes = 10;
lock (_localIpAddressSyncLock) lock (_localIpAddressSyncLock)
{ {
@ -198,12 +198,6 @@ namespace Emby.Server.Implementations.Networking
return Dns.GetHostAddressesAsync(hostName); return Dns.GetHostAddressesAsync(hostName);
} }
private readonly List<NetworkInterfaceType> _validNetworkInterfaceTypes = new List<NetworkInterfaceType>
{
NetworkInterfaceType.Ethernet,
NetworkInterfaceType.Wireless80211
};
private List<IPAddress> GetIPsDefault() private List<IPAddress> GetIPsDefault()
{ {
NetworkInterface[] interfaces; NetworkInterface[] interfaces;
@ -227,7 +221,8 @@ namespace Emby.Server.Implementations.Networking
try try
{ {
Logger.Debug("Querying interface: {0}. Type: {1}. Status: {2}", network.Name, network.NetworkInterfaceType, network.OperationalStatus); // suppress logging because it might be causing nas device wake up
//Logger.Debug("Querying interface: {0}. Type: {1}. Status: {2}", network.Name, network.NetworkInterfaceType, network.OperationalStatus);
var ipProperties = network.GetIPProperties(); var ipProperties = network.GetIPProperties();