mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 13:10:13 -07: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 @@ namespace NzbDrone.Host
|
||||||
{
|
{
|
||||||
try
|
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);
|
var startupContext = new StartupContext(args);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue