From 4c8dca5d908a4c3e77c9fa6d18a8c11f6cfa8d92 Mon Sep 17 00:00:00 2001 From: Tsessebe Date: Sat, 27 Jan 2018 09:33:56 +0200 Subject: [PATCH] Fixed the generation of the log path; to allow for rooted paths & different location. Removed missing files from Project. --- Bonobo.Git.Server/Bonobo.Git.Server.csproj | 6 ------ Bonobo.Git.Server/Global.asax.cs | 5 ++++- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Bonobo.Git.Server/Bonobo.Git.Server.csproj b/Bonobo.Git.Server/Bonobo.Git.Server.csproj index ff55b58b6..fba1fa2c2 100644 --- a/Bonobo.Git.Server/Bonobo.Git.Server.csproj +++ b/Bonobo.Git.Server/Bonobo.Git.Server.csproj @@ -646,12 +646,6 @@ - - Web.config - - - Web.config - Web.config Designer diff --git a/Bonobo.Git.Server/Global.asax.cs b/Bonobo.Git.Server/Global.asax.cs index 025442966..c513d6ea4 100644 --- a/Bonobo.Git.Server/Global.asax.cs +++ b/Bonobo.Git.Server/Global.asax.cs @@ -122,7 +122,10 @@ public static string GetLogFileNameFormat() { logDirectory = @"~\App_Data\Logs"; } - return Path.Combine(HostingEnvironment.MapPath(logDirectory), "log-{Date}.txt"); + + var logPath = GetRootPath(logDirectory); // Allow for Different Log location. + + return Path.Combine(logPath, "log-{Date}.txt"); } private static void RegisterDependencyResolver()