From 560dc1ffedb131fb20abdb7c098c39e3fcea7045 Mon Sep 17 00:00:00 2001 From: ta264 Date: Sun, 24 Jan 2021 22:05:08 +0000 Subject: [PATCH] Fix logging of startup location --- src/NzbDrone.Host/Bootstrap.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Host/Bootstrap.cs b/src/NzbDrone.Host/Bootstrap.cs index 8b53bc679..15819568c 100644 --- a/src/NzbDrone.Host/Bootstrap.cs +++ b/src/NzbDrone.Host/Bootstrap.cs @@ -1,4 +1,5 @@ using System; +using System.Diagnostics; using System.Reflection; using System.Text; using System.Threading; @@ -22,7 +23,13 @@ namespace Radarr.Host { try { - Logger.Info("Starting Radarr - {0} - Version {1}", Assembly.GetCallingAssembly().Location, Assembly.GetExecutingAssembly().GetName().Version); + Logger.Info("Starting Radarr - {0} - Version {1}", +#if NETCOREAPP + Process.GetCurrentProcess().MainModule.FileName, +#else + Assembly.GetCallingAssembly().Location, +#endif + Assembly.GetExecutingAssembly().GetName().Version); if (!PlatformValidation.IsValidate(userAlert)) {