From 364fbb9e0c7586afa296ddd7d739df086f4c3533 Mon Sep 17 00:00:00 2001 From: LukePulverenti Date: Mon, 25 Feb 2013 00:17:59 -0500 Subject: fixed plugin assembly downloads as well as debug/release detection with nuget assemblies --- MediaBrowser.ServerApplication/ApplicationHost.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'MediaBrowser.ServerApplication') diff --git a/MediaBrowser.ServerApplication/ApplicationHost.cs b/MediaBrowser.ServerApplication/ApplicationHost.cs index 88eb1c7e11..5a98e7d93d 100644 --- a/MediaBrowser.ServerApplication/ApplicationHost.cs +++ b/MediaBrowser.ServerApplication/ApplicationHost.cs @@ -119,6 +119,7 @@ namespace MediaBrowser.ServerApplication _taskManager = new TaskManager(_applicationPaths, _jsonSerializer, Logger); Kernel = new Kernel(this, _applicationPaths, _xmlSerializer, _taskManager, Logger); + ReloadLogger(); RegisterResources(); @@ -333,7 +334,7 @@ namespace MediaBrowser.ServerApplication /// public void ReloadLogger() { - LogFilePath = Path.Combine(Kernel.ApplicationPaths.LogDirectoryPath, "Server-" + DateTime.Now.Ticks + ".log"); + LogFilePath = Path.Combine(_applicationPaths.LogDirectoryPath, "Server-" + DateTime.Now.Ticks + ".log"); NlogManager.AddFileTarget(LogFilePath, Kernel.Configuration.EnableDebugLevelLogging); } -- cgit v1.2.3