fix(server): add gitsha to version output. (#217)

This closes #202.
In addition, update helio dependency.
This commit is contained in:
Roman Gershman 2022-07-27 10:51:18 +03:00 committed by GitHub
parent 753c1c0177
commit b07415ebb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

2
helio

@ -1 +1 @@
Subproject commit 8a6e9279cdf7182934afdf0af7c3735ed2b7a75c
Subproject commit 971b1bbdaef78aa7dc0cb1721d04cb69627dbbe6

View File

@ -184,15 +184,16 @@ Usage: dragonfly [FLAGS]
config.contains_helpshort_flags = dfly::HelpshortFlags;
config.normalize_filename = dfly::NormalizePaths;
config.version_string = [] {
return StrCat("dragonfly ", ColoredStr(TermColor::kGreen, dfly::kGitTag),
"\nbuild time: ", dfly::kBuildTime, "\n");
string version = StrCat(dfly::kGitTag, "-", dfly::kGitSha);
return StrCat("dragonfly ", ColoredStr(TermColor::kGreen, version),
"\nbuild time: ", ColoredStr(TermColor::kYellow, dfly::kBuildTime), "\n");
};
absl::SetFlagsUsageConfig(config);
MainInitGuard guard(&argc, &argv);
LOG(INFO) << "Starting dragonfly " << GetVersion();
LOG(INFO) << "Starting dragonfly " << GetVersion() << "-" << kGitSha;
struct sigaction act;
act.sa_handler = sigill_hdlr;