Skip to content
Snippets Groups Projects
Commit 08f53643 authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Assemble version summary string already in StartupSummary.

Otherwise it will be missing when a grace cleanup email is being sent in
the startup phase.

Refers to #31
parent 4b08d6e5
No related branches found
No related tags found
No related merge requests found
......@@ -311,6 +311,11 @@ namespace ATxService
$" > description: {roboVersionInfo.Comments}\n" +
$" > version information: {roboVersionInfo.ProductVersion}\n";
_versionSummary = $"AutoTx {Properties.Resources.BuildCommit.Trim()} " +
$"{Properties.Resources.BuildDate.Trim()} | " +
$"RoboSharp {roboAssembly.GetName().Version} " +
$"{roboVersionInfo.ProductVersion}";
msg += "\n------ Loaded status flags ------\n" + _status.Summary() +
"\n------ Loaded configuration settings ------\n" + _config.Summary();
......@@ -369,6 +374,7 @@ namespace ATxService
var roboVersionInfo = FileVersionInfo.GetVersionInfo(roboAssembly.Location);
Log.Info("Email version string: [{0}]", _versionSummary);
Log.Info("=".PadLeft(80, '='));
Log.Info("{0} service started.", ServiceName);
Log.Info("build: [{0}]", buildTimestamp);
......@@ -379,10 +385,6 @@ namespace ATxService
Log.Info("RoboSharp version: [{0}]", roboAssembly.GetName().Version);
Log.Info("Robosharp product version: [{0}]", roboVersionInfo.ProductVersion);
Log.Info("=".PadLeft(80, '='));
_versionSummary = $"AutoTx {buildCommitName} {buildTimestamp} | " +
$"RoboSharp {roboAssembly.GetName().Version} " +
$"{roboVersionInfo.ProductVersion}";
}
/// <summary>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment