From 2dd0478ea6c12a15cbedf3d0febc33a4b2c02cdc Mon Sep 17 00:00:00 2001 From: "Jamie.Rees" Date: Tue, 5 Sep 2017 13:15:58 +0100 Subject: [PATCH] Added more logging for the updater --- src/Ombi.Schedule/Jobs/Ombi/OmbiAutomaticUpdater.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Ombi.Schedule/Jobs/Ombi/OmbiAutomaticUpdater.cs b/src/Ombi.Schedule/Jobs/Ombi/OmbiAutomaticUpdater.cs index c418911a1..d895f7706 100644 --- a/src/Ombi.Schedule/Jobs/Ombi/OmbiAutomaticUpdater.cs +++ b/src/Ombi.Schedule/Jobs/Ombi/OmbiAutomaticUpdater.cs @@ -36,14 +36,22 @@ namespace Ombi.Schedule.Jobs.Ombi var currentLocation = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location); var productVersion = AssemblyHelper.GetRuntimeVersion(); + Logger.LogInformation(LoggingEvents.Updater, "Product Version {0}", productVersion); var productArray = productVersion.Split('-'); var version = productArray[0]; var branch = productArray[1]; - + + Logger.LogInformation(LoggingEvents.Updater, "Version {0}", version); + Logger.LogInformation(LoggingEvents.Updater, "Branch {0}", branch); + + var updates = await OmbiService.GetUpdates(branch); var serverVersion = updates.UpdateVersionString.Substring(1, 6); + + Logger.LogInformation(LoggingEvents.Updater, "Service Version {0}", updates.UpdateVersionString); + if (!serverVersion.Equals(version, StringComparison.CurrentCultureIgnoreCase)) {