MCPcopy Create free account
hub / github.com/distributedio/titan / logVersionInfo

Function logVersionInfo

util.go:13–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11)
12
13func logVersionInfo() {
14 zap.L().Info("Welcome to Titan.")
15 zap.L().Info("Server info", zap.String("Release Version", context.ReleaseVersion))
16 zap.L().Info("Server info", zap.String("Git Commit Hash", context.GitHash))
17 zap.L().Info("Server info", zap.String("Git Commit Log", context.GitLog))
18 zap.L().Info("Server info", zap.String("Git Branch", context.GitBranch))
19 zap.L().Info("Server info", zap.String("UTC Build Time", context.BuildTS))
20 zap.L().Info("Server info", zap.String("Golang compiler Version", context.GolangVersion))
21}
22
23// PrintVersionInfo prints the server version info
24func PrintVersionInfo() {

Callers

nothing calls this directly

Calls 2

InfoMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected