From c16eddbf9ff92962af6facbead748cb1e1e438e9 Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Thu, 28 Sep 2017 08:45:51 +0200 Subject: [PATCH] Log DownloadStation sid at Debug level to investigate possible cause reason 119. --- .../DownloadStation/Proxies/DiskStationProxyBase.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/Download/Clients/DownloadStation/Proxies/DiskStationProxyBase.cs b/src/NzbDrone.Core/Download/Clients/DownloadStation/Proxies/DiskStationProxyBase.cs index 2b2ea6ca7..1f5ddeba7 100644 --- a/src/NzbDrone.Core/Download/Clients/DownloadStation/Proxies/DiskStationProxyBase.cs +++ b/src/NzbDrone.Core/Download/Clients/DownloadStation/Proxies/DiskStationProxyBase.cs @@ -160,7 +160,9 @@ namespace NzbDrone.Core.Download.Clients.DownloadStation.Proxies { if (apiInfo.NeedsAuthentication) { - requestBuilder.AddFormParameter("_sid", _sessionCache.Get(GenerateSessionCacheKey(settings), () => AuthenticateClient(settings), TimeSpan.FromHours(6))); + var sid = _sessionCache.Get(GenerateSessionCacheKey(settings), () => AuthenticateClient(settings), TimeSpan.FromHours(6)); + _logger.Debug("DownloadStation Session sid={0}", sid); + requestBuilder.AddFormParameter("_sid", sid); } requestBuilder.AddFormParameter("api", apiInfo.Name); @@ -171,7 +173,9 @@ namespace NzbDrone.Core.Download.Clients.DownloadStation.Proxies { if (apiInfo.NeedsAuthentication) { - requestBuilder.AddQueryParam("_sid", _sessionCache.Get(GenerateSessionCacheKey(settings), () => AuthenticateClient(settings), TimeSpan.FromHours(6))); + var sid = _sessionCache.Get(GenerateSessionCacheKey(settings), () => AuthenticateClient(settings), TimeSpan.FromHours(6)); + _logger.Debug("DownloadStation Session sid={0}", sid); + requestBuilder.AddQueryParam("_sid", sid); } requestBuilder.AddQueryParam("api", apiInfo.Name);