Added more logging into the updater

pull/2480/head
Jamie 7 years ago
parent 7c86d20846
commit a214ecd67e

@ -50,6 +50,7 @@ namespace Ombi.Updater
private void StartOmbi(StartupOptions options) private void StartOmbi(StartupOptions options)
{ {
var startupArgsBuilder = new StringBuilder();
_log.LogDebug("Starting ombi"); _log.LogDebug("Starting ombi");
var fileName = "Ombi.exe"; var fileName = "Ombi.exe";
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
@ -73,7 +74,6 @@ namespace Ombi.Updater
} }
else else
{ {
var startupArgsBuilder = new StringBuilder();
if (!string.IsNullOrEmpty(options.Host)) if (!string.IsNullOrEmpty(options.Host))
{ {
startupArgsBuilder.Append($"--host {options.Host} "); startupArgsBuilder.Append($"--host {options.Host} ");
@ -96,7 +96,10 @@ namespace Ombi.Updater
} }
} }
_log.LogDebug("Ombi started, now exiting"); _log.LogDebug($"Ombi started, now exiting");
_log.LogDebug($"Working dir: {options.ApplicationPath} (Application Path)");
_log.LogDebug($"Filename: {Path.Combine(options.ApplicationPath, fileName)}");
_log.LogDebug($"Startup Args: {startupArgsBuilder.ToString()}");
Environment.Exit(0); Environment.Exit(0);
} }

Loading…
Cancel
Save