From b48da40dd618a53d0f5a81dce729e5ab0b8923ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikha=C3=ABl=20Regni?= Date: Sat, 17 Aug 2019 15:36:27 +0200 Subject: [PATCH] Making sure the correct dir is selected, close #906 --- EmbyStat.Web/EmbyStat.Web.csproj | 2 +- EmbyStat.Web/Program.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/EmbyStat.Web/EmbyStat.Web.csproj b/EmbyStat.Web/EmbyStat.Web.csproj index 12bb266a9..4087d3613 100644 --- a/EmbyStat.Web/EmbyStat.Web.csproj +++ b/EmbyStat.Web/EmbyStat.Web.csproj @@ -162,7 +162,7 @@ PreserveNewest - PreserveNewest + Always diff --git a/EmbyStat.Web/Program.cs b/EmbyStat.Web/Program.cs index 212a6cb7b..3ff73e7c9 100644 --- a/EmbyStat.Web/Program.cs +++ b/EmbyStat.Web/Program.cs @@ -84,7 +84,7 @@ private static Logger SetupLogging() File.Move(source, destination); } - var logger = NLogBuilder.ConfigureNLog(Path.Combine("config", "nlog.config")).GetCurrentClassLogger(); + var logger = NLogBuilder.ConfigureNLog(Path.Combine(Directory.GetCurrentDirectory(), "config", "nlog.config")).GetCurrentClassLogger(); return logger; }