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()