log version number on startup

This commit is contained in:
David Zhao
2021-01-27 09:08:23 -08:00
parent 5b20068f6c
commit 08f5957d65

View File

@@ -15,6 +15,7 @@ import (
"github.com/livekit/livekit-server/pkg/logger"
"github.com/livekit/livekit-server/pkg/routing"
"github.com/livekit/livekit-server/proto/livekit"
"github.com/livekit/livekit-server/version"
)
type LivekitServer struct {
@@ -98,7 +99,8 @@ func (s *LivekitServer) Start() error {
go func() {
logger.Infow("starting LiveKit server", "address", s.httpServer.Addr,
"nodeId", s.currentNode.Id)
"nodeId", s.currentNode.Id,
"version", version.Version)
s.httpServer.Serve(ln)
}()