[MM-31555] Print golang version on server startup (#16610)

* Added log to print golang version before running Server

* Minor fix

* Review Fixes

* Review Fixes - 2

* Update app/server.go

Co-authored-by: Claudio Costa <cstcld91@gmail.com>

Co-authored-by: Claudio Costa <cstcld91@gmail.com>
This commit is contained in:
Ayan Banerjee
2021-01-02 23:35:22 +05:30
committed by GitHub
parent 40e16ba07f
commit 55f5932ed5

View File

@@ -224,7 +224,7 @@ func NewServer(options ...Option) (*Server, error) {
}
// This is called after initLogging() to avoid a race condition.
mlog.Info("Server is initializing...")
mlog.Info("Server is initializing...", mlog.String("go_version", runtime.Version()))
// It is important to initialize the hub only after the global logger is set
// to avoid race conditions while logging from inside the hub.