Remove spammy debug line
This commit is contained in:
parent
670f7cacc3
commit
e530401462
|
@ -87,13 +87,10 @@ namespace Emby.Dlna.PlayTo
|
||||||
nt = string.Empty;
|
nt = string.Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
string location = info.Location.ToString();
|
|
||||||
|
|
||||||
// It has to report that it's a media renderer
|
// It has to report that it's a media renderer
|
||||||
if (!usn.Contains("MediaRenderer:", StringComparison.OrdinalIgnoreCase)
|
if (!usn.Contains("MediaRenderer:", StringComparison.OrdinalIgnoreCase)
|
||||||
&& !nt.Contains("MediaRenderer:", StringComparison.OrdinalIgnoreCase))
|
&& !nt.Contains("MediaRenderer:", StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
_logger.LogDebug("Upnp device {0} does not contain a MediaRenderer device (0).", location);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -113,7 +110,7 @@ namespace Emby.Dlna.PlayTo
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
await AddDevice(info, location, cancellationToken).ConfigureAwait(false);
|
await AddDevice(info, cancellationToken).ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
catch (OperationCanceledException)
|
catch (OperationCanceledException)
|
||||||
{
|
{
|
||||||
|
@ -160,19 +157,18 @@ namespace Emby.Dlna.PlayTo
|
||||||
return tmp.ToString();
|
return tmp.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task AddDevice(UpnpDeviceInfo info, string location, CancellationToken cancellationToken)
|
private async Task AddDevice(UpnpDeviceInfo info, CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
var uri = info.Location;
|
var uri = info.Location;
|
||||||
_logger.LogDebug("Attempting to create PlayToController from location {0}", location);
|
_logger.LogDebug("Attempting to create PlayToController from location {0}", uri);
|
||||||
|
|
||||||
_logger.LogDebug("Logging session activity from location {0}", location);
|
|
||||||
if (info.Headers.TryGetValue("USN", out string uuid))
|
if (info.Headers.TryGetValue("USN", out string uuid))
|
||||||
{
|
{
|
||||||
uuid = GetUuid(uuid);
|
uuid = GetUuid(uuid);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
uuid = location.GetMD5().ToString("N", CultureInfo.InvariantCulture);
|
uuid = uri.ToString().GetMD5().ToString("N", CultureInfo.InvariantCulture);
|
||||||
}
|
}
|
||||||
|
|
||||||
var sessionInfo = _sessionManager.LogSessionActivity("DLNA", _appHost.ApplicationVersionString, uuid, null, uri.OriginalString, null);
|
var sessionInfo = _sessionManager.LogSessionActivity("DLNA", _appHost.ApplicationVersionString, uuid, null, uri.OriginalString, null);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user