aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Dlna/Service/BaseControlHandler.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-04-30 23:00:54 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-04-30 23:00:54 -0400
commit8ae0822e13fff4d72e78732a8f574a1163325423 (patch)
treeb433a7b03de4fc73e3f50b859b4465884a44f87d /MediaBrowser.Dlna/Service/BaseControlHandler.cs
parentf165811e5f0627e138b094a081a68960c3f9a8f9 (diff)
adjust dlna logging
Diffstat (limited to 'MediaBrowser.Dlna/Service/BaseControlHandler.cs')
-rw-r--r--MediaBrowser.Dlna/Service/BaseControlHandler.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/MediaBrowser.Dlna/Service/BaseControlHandler.cs b/MediaBrowser.Dlna/Service/BaseControlHandler.cs
index a17182a7e..a65520d65 100644
--- a/MediaBrowser.Dlna/Service/BaseControlHandler.cs
+++ b/MediaBrowser.Dlna/Service/BaseControlHandler.cs
@@ -27,14 +27,16 @@ namespace MediaBrowser.Dlna.Service
{
try
{
- if (Config.GetDlnaConfiguration().EnableDebugLogging)
+ var enableDebugLogging = Config.GetDlnaConfiguration().EnableDebugLogging;
+
+ if (enableDebugLogging)
{
LogRequest(request);
}
var response = ProcessControlRequestInternal(request);
- if (Config.GetDlnaConfiguration().EnableDebugLogging)
+ if (enableDebugLogging)
{
LogResponse(response);
}