Skip to content

Commit

Permalink
log the version and build date on server startup (openshift#1746)
Browse files Browse the repository at this point in the history
log the version and build date on server startup by adding logging into hyperkube
  • Loading branch information
Jay Boyd authored and jpeeler committed Feb 21, 2018
1 parent 0db9519 commit 4ea44c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/hyperkube/hyperkube.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ import (
"os"
"path"

"github.com/golang/glog"
"github.com/kubernetes-incubator/service-catalog/pkg/version"

"github.com/spf13/pflag"

utiltemplate "github.com/kubernetes-incubator/service-catalog/pkg/kubernetes/pkg/util/template"
Expand Down Expand Up @@ -182,7 +185,7 @@ func (hk *HyperKube) Run(args []string, stopCh <-chan struct{}) error {

logs.InitLogs()
defer logs.FlushLogs()

glog.Infof("Service Catalog version %s (built %s)", version.Get().String(), version.Get().BuildDate)
if !s.RespectsStopCh {
// For commands that do not respect the stopCh, we run them in a go
// routine and leave them running when stopCh is closed.
Expand Down

0 comments on commit 4ea44c4

Please sign in to comment.