[#1587] Do not print build time in version
This makes our build more reproducible. Also print `Component` and `GoVersion`. Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
b3272e7cf1
commit
5569ff82ef
7 changed files with 21 additions and 37 deletions
|
@ -39,12 +39,7 @@ func main() {
|
|||
flag.Parse()
|
||||
|
||||
if *versionFlag {
|
||||
fmt.Printf(
|
||||
"Version: %s \nBuild: %s \nDebug: %s\n",
|
||||
misc.Version,
|
||||
misc.Build,
|
||||
misc.Debug,
|
||||
)
|
||||
fmt.Print(misc.BuildInfo("NeoFS Storage node"))
|
||||
|
||||
os.Exit(SuccessReturnCode)
|
||||
}
|
||||
|
@ -115,7 +110,6 @@ func bootUp(c *cfg) {
|
|||
|
||||
func wait(c *cfg) {
|
||||
c.log.Info("application started",
|
||||
zap.String("build_time", misc.Build),
|
||||
zap.String("version", misc.Version),
|
||||
zap.String("debug", misc.Debug),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue