aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2020-12-04 20:24:54 -0500
committerGitHub <noreply@github.com>2020-12-04 20:24:54 -0500
commit6aed4b6e32f6a1dd1712c270340958a01cc4e18e (patch)
treece056662a2193e09b390eee00fc876880bf63f39
parentbba01bf7b9f63e0e19c133bed201db29fa60a833 (diff)
parente5304014627d9cd76fc7389a47ee85a34d66ca1d (diff)
Merge pull request #4661 from Bond-009/spam
Remove spammy debug line
-rw-r--r--Emby.Dlna/PlayTo/PlayToManager.cs12
1 files changed, 4 insertions, 8 deletions
diff --git a/Emby.Dlna/PlayTo/PlayToManager.cs b/Emby.Dlna/PlayTo/PlayToManager.cs
index f34332d62..a6793a708 100644
--- a/Emby.Dlna/PlayTo/PlayToManager.cs
+++ b/Emby.Dlna/PlayTo/PlayToManager.cs
@@ -87,13 +87,10 @@ namespace Emby.Dlna.PlayTo
nt = string.Empty;
}
- string location = info.Location.ToString();
-
// It has to report that it's a media renderer
if (!usn.Contains("MediaRenderer:", StringComparison.OrdinalIgnoreCase)
&& !nt.Contains("MediaRenderer:", StringComparison.OrdinalIgnoreCase))
{
- _logger.LogDebug("Upnp device {0} does not contain a MediaRenderer device (0).", location);
return;
}
@@ -113,7 +110,7 @@ namespace Emby.Dlna.PlayTo
return;
}
- await AddDevice(info, location, cancellationToken).ConfigureAwait(false);
+ await AddDevice(info, cancellationToken).ConfigureAwait(false);
}
catch (OperationCanceledException)
{
@@ -160,19 +157,18 @@ namespace Emby.Dlna.PlayTo
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;
- _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))
{
uuid = GetUuid(uuid);
}
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);