Use Environment.ProcessPath instead of GetCurrentProcess().MainModule.FileName

GetCurrentProcess().MainModule.FileName is expensive, Environment.ProcessPath added in net6
pull/3659/head
Qstick 2 years ago committed by Bogdan
parent add2a3afa0
commit ddb8c8dffe

@ -44,7 +44,9 @@ namespace NzbDrone.Host
{
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…
Cancel
Save