feat(chainwatch): Add full version to help/startup log via build param

This commit is contained in:
Mike Greenberg 2020-08-17 11:31:59 -04:00
parent 0b498d25f6
commit b37a39588e
2 changed files with 2 additions and 2 deletions

View File

@ -148,7 +148,7 @@ BINS+=lotus-fountain
lotus-chainwatch: lotus-chainwatch:
rm -f lotus-chainwatch rm -f lotus-chainwatch
go build -o lotus-chainwatch ./cmd/lotus-chainwatch go build $(GOFLAGS) -o lotus-chainwatch ./cmd/lotus-chainwatch
.PHONY: lotus-chainwatch .PHONY: lotus-chainwatch
BINS+=lotus-chainwatch BINS+=lotus-chainwatch

View File

@ -14,7 +14,7 @@ func main() {
if err := logging.SetLogLevel("*", "info"); err != nil { if err := logging.SetLogLevel("*", "info"); err != nil {
log.Fatal(err) log.Fatal(err)
} }
log.Info("Starting chainwatch") log.Info("Starting chainwatch", " v", build.UserVersion())
app := &cli.App{ app := &cli.App{
Name: "lotus-chainwatch", Name: "lotus-chainwatch",