adjust dlna logging

This commit is contained in:
Luke Pulverenti
2015-04-30 23:00:54 -04:00
parent f165811e5f
commit 8ae0822e13
4 changed files with 36 additions and 26 deletions

View File

@@ -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);
}