Skip to content

Commit

Permalink
Log version information on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
douglaswth committed Jul 7, 2022
1 parent c144651 commit 7cd34ff
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmd/presence/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,13 @@ func (cli *CLI) Context() (ctx context.Context) {
} else {
ctx = log.Context(ctx)
}
log.Print(ctx,
log.KV{K: "presence version", V: version},
log.KV{K: "go version", V: runtime.Version()},
log.KV{K: "os", V: runtime.GOOS},
log.KV{K: "arch", V: runtime.GOARCH},
log.KV{K: "commit", V: commit},
log.KV{K: "date", V: date},
)
return
}

0 comments on commit 7cd34ff

Please sign in to comment.