diff options
Diffstat (limited to 'MediaBrowser.Dlna/Service/BaseControlHandler.cs')
| -rw-r--r-- | MediaBrowser.Dlna/Service/BaseControlHandler.cs | 6 |
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); } |
