mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-13 00:32:57 -07:00
Added more logging for the updater
This commit is contained in:
parent
4ae061f167
commit
2dd0478ea6
1 changed files with 9 additions and 1 deletions
|
@ -36,14 +36,22 @@ namespace Ombi.Schedule.Jobs.Ombi
|
||||||
var currentLocation = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
|
var currentLocation = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
|
||||||
|
|
||||||
var productVersion = AssemblyHelper.GetRuntimeVersion();
|
var productVersion = AssemblyHelper.GetRuntimeVersion();
|
||||||
|
Logger.LogInformation(LoggingEvents.Updater, "Product Version {0}", productVersion);
|
||||||
|
|
||||||
var productArray = productVersion.Split('-');
|
var productArray = productVersion.Split('-');
|
||||||
var version = productArray[0];
|
var version = productArray[0];
|
||||||
var branch = productArray[1];
|
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 updates = await OmbiService.GetUpdates(branch);
|
||||||
var serverVersion = updates.UpdateVersionString.Substring(1, 6);
|
var serverVersion = updates.UpdateVersionString.Substring(1, 6);
|
||||||
|
|
||||||
|
Logger.LogInformation(LoggingEvents.Updater, "Service Version {0}", updates.UpdateVersionString);
|
||||||
|
|
||||||
if (!serverVersion.Equals(version, StringComparison.CurrentCultureIgnoreCase))
|
if (!serverVersion.Equals(version, StringComparison.CurrentCultureIgnoreCase))
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue