fix(server): add gitsha to version output. (#217)
This closes #202. In addition, update helio dependency.
This commit is contained in:
parent
753c1c0177
commit
b07415ebb8
2
helio
2
helio
|
@ -1 +1 @@
|
|||
Subproject commit 8a6e9279cdf7182934afdf0af7c3735ed2b7a75c
|
||||
Subproject commit 971b1bbdaef78aa7dc0cb1721d04cb69627dbbe6
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue