mirror of
https://github.com/lidarr/Lidarr
synced 2025-01-03 05:25:10 +00:00
Use Environment.ProcessPath instead of GetCurrentProcess().MainModule.FileName
GetCurrentProcess().MainModule.FileName is expensive, Environment.ProcessPath added in net6
This commit is contained in:
parent
add2a3afa0
commit
ddb8c8dffe
1 changed files with 3 additions and 1 deletions
|
@ -44,7 +44,9 @@ public static void Start(string[] args, Action<IHostBuilder> trayCallback = null
|
|||
{
|
||||
try
|
||||
{
|
||||
Logger.Info("Starting Lidarr - {0} - Version {1}", Assembly.GetCallingAssembly().Location, Assembly.GetExecutingAssembly().GetName().Version);
|
||||
Logger.Info("Starting Lidarr - {0} - Version {1}",
|
||||
Environment.ProcessPath,
|
||||
Assembly.GetExecutingAssembly().GetName().Version);
|
||||
|
||||
var startupContext = new StartupContext(args);
|
||||
|
||||
|
|
Loading…
Reference in a new issue