From f6f1d88969e12eadb7013397cdad3c4c5625988c Mon Sep 17 00:00:00 2001 From: Jeff Halter <868228+jhalter@users.noreply.github.com> Date: Sat, 15 Jun 2024 11:17:55 -0700 Subject: Replace hardcoded version with ldflag usage --- cmd/mobius-hotline-server/main.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cmd/mobius-hotline-server') diff --git a/cmd/mobius-hotline-server/main.go b/cmd/mobius-hotline-server/main.go index 8e66938..66566cd 100644 --- a/cmd/mobius-hotline-server/main.go +++ b/cmd/mobius-hotline-server/main.go @@ -122,6 +122,12 @@ func main() { }(srv) } + slogger.Info("Hotline server started", + "version", version, + "API port", fmt.Sprintf("%s:%v", *netInterface, *basePort), + "Transfer port", fmt.Sprintf("%s:%v", *netInterface, *basePort+1), + ) + // Serve Hotline requests until program exit log.Fatal(srv.ListenAndServe(ctx, cancel)) } -- cgit