mirror of
https://github.com/Radarr/Radarr
synced 2025-12-28 19:24:53 +01:00
Fix logging of startup location
This commit is contained in:
parent
14d43e6d6b
commit
560dc1ffed
1 changed files with 8 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
|
|
@ -22,7 +23,13 @@ public static void Start(StartupContext startupContext, IUserAlert userAlert, Ac
|
|||
{
|
||||
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))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue