mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Remove additional debug logging.
This commit is contained in:
parent
2979c8dd37
commit
08e83cfa54
@ -195,15 +195,6 @@ namespace Jellyfin.Networking.Manager
|
|||||||
return _macAddresses;
|
return _macAddresses;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// REMOVE after debugging.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="msg">Message.</param>
|
|
||||||
public void Log(string msg)
|
|
||||||
{
|
|
||||||
_logger.LogInformation(msg);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
public bool IsGatewayInterface(IPObject? addressObj)
|
public bool IsGatewayInterface(IPObject? addressObj)
|
||||||
{
|
{
|
||||||
|
@ -232,27 +232,6 @@ namespace Jellyfin.Server.Extensions
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static string EnumToString<T>(IEnumerable<T> x)
|
|
||||||
{
|
|
||||||
var sb = new StringBuilder();
|
|
||||||
foreach (var item in x)
|
|
||||||
{
|
|
||||||
if (item is IPAddress ipItem)
|
|
||||||
{
|
|
||||||
sb.Append(ipItem.ToString());
|
|
||||||
}
|
|
||||||
else if (item is IPNetwork ipNetwork)
|
|
||||||
{
|
|
||||||
sb.Append(ipNetwork.Prefix.ToString());
|
|
||||||
sb.Append('/');
|
|
||||||
sb.Append(ipNetwork.PrefixLength.ToString(CultureInfo.InvariantCulture));
|
|
||||||
sb.Append(',');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return sb.ToString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Extension method for adding the jellyfin API to the service collection.
|
/// Extension method for adding the jellyfin API to the service collection.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -280,8 +259,6 @@ namespace Jellyfin.Server.Extensions
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
ParseList(networkManager, config, config.KnownProxies, options);
|
ParseList(networkManager, config, config.KnownProxies, options);
|
||||||
networkManager.Log("KnownProxies: " + EnumToString<IPAddress>(options.KnownProxies));
|
|
||||||
networkManager.Log("KnownNetworks: " + EnumToString<IPNetwork>(options.KnownNetworks));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only set forward limit if we have some known proxies or some known networks.
|
// Only set forward limit if we have some known proxies or some known networks.
|
||||||
@ -289,8 +266,6 @@ namespace Jellyfin.Server.Extensions
|
|||||||
{
|
{
|
||||||
options.ForwardLimit = null;
|
options.ForwardLimit = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
networkManager.Log("Forward Limit : " + options.ForwardLimit?.ToString(CultureInfo.CurrentCulture) ?? "None");
|
|
||||||
})
|
})
|
||||||
.AddMvc(opts =>
|
.AddMvc(opts =>
|
||||||
{
|
{
|
||||||
|
@ -239,11 +239,5 @@ namespace MediaBrowser.Common.Net
|
|||||||
/// <param name="filter">Optional filter for the list.</param>
|
/// <param name="filter">Optional filter for the list.</param>
|
||||||
/// <returns>Returns a filtered list of LAN addresses.</returns>
|
/// <returns>Returns a filtered list of LAN addresses.</returns>
|
||||||
Collection<IPObject> GetFilteredLANSubnets(Collection<IPObject>? filter = null);
|
Collection<IPObject> GetFilteredLANSubnets(Collection<IPObject>? filter = null);
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// REMOVE after debugging.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="msg">Message.</param>
|
|
||||||
void Log(string msg);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user