Skip to content

Commit

Permalink
feat: log visor version on startup (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
iand authored Oct 16, 2020
1 parent a10a407 commit f7ba859
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions commands/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"github.com/filecoin-project/sentinel-visor/tasks/message"
"github.com/filecoin-project/sentinel-visor/tasks/stats"
"github.com/filecoin-project/sentinel-visor/tasks/views"
"github.com/filecoin-project/sentinel-visor/version"
)

var Run = &cli.Command{
Expand Down Expand Up @@ -215,6 +216,8 @@ var Run = &cli.Command{
return xerrors.Errorf("setup logging: %w", err)
}

log.Infof("Visor version:%s", version.String())

if err := setupMetrics(cctx); err != nil {
return xerrors.Errorf("setup metrics: %w", err)
}
Expand Down

0 comments on commit f7ba859

Please sign in to comment.