Log GOOS and GOARCH on startup
This commit is contained in:
parent
ae5846b3d9
commit
30fd4e52b0
@ -53,7 +53,11 @@ var cliArgs struct {
|
|||||||
func main() {
|
func main() {
|
||||||
output := zerolog.ConsoleWriter{Out: colorable.NewColorableStdout(), TimeFormat: time.RFC3339}
|
output := zerolog.ConsoleWriter{Out: colorable.NewColorableStdout(), TimeFormat: time.RFC3339}
|
||||||
log.Logger = log.Output(output)
|
log.Logger = log.Output(output)
|
||||||
log.Info().Str("version", appinfo.ApplicationVersion).Msgf("starting %v", appinfo.ApplicationName)
|
log.Info().
|
||||||
|
Str("version", appinfo.ApplicationVersion).
|
||||||
|
Str("os", runtime.GOOS).
|
||||||
|
Str("arch", runtime.GOARCH).
|
||||||
|
Msgf("starting %v", appinfo.ApplicationName)
|
||||||
|
|
||||||
parseCliArgs()
|
parseCliArgs()
|
||||||
if cliArgs.version {
|
if cliArgs.version {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user