Skip to content

Commit

Permalink
Merge pull request #911 from klihub/print-agent-version
Browse files Browse the repository at this point in the history
cri-resmgr-agent: print version info on startup.
  • Loading branch information
marquiz committed Nov 8, 2022
2 parents bbaabf9 + ed57ea4 commit a7d5fb3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/cri-resmgr-agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (

"github.com/intel/cri-resource-manager/pkg/agent"
"github.com/intel/cri-resource-manager/pkg/log"
"github.com/intel/cri-resource-manager/pkg/version"
)

func main() {
Expand All @@ -36,6 +37,8 @@ func main() {
log.Fatal("failed to create resource manager agent instance: %v", err)
}

log.Info("cri-resmgr agent (version %s, build %s) starting...", version.Version, version.Build)

if err := a.Run(); err != nil {
log.Fatal("%v", err)
}
Expand Down

0 comments on commit a7d5fb3

Please sign in to comment.