Skip to content

Commit 954d97f

Browse files
committed
Log version on startup
1 parent 4d2ff44 commit 954d97f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/servercmd.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212

1313
"github.com/spf13/cobra"
1414
"go.ntppool.org/common/logger"
15+
"go.ntppool.org/common/version"
1516
"go.ntppool.org/data-api/server"
1617
"golang.org/x/sync/errgroup"
1718
)
@@ -39,6 +40,8 @@ func (cli *CLI) serverCLI(cmd *cobra.Command, args []string) error {
3940

4041
g, ctx := errgroup.WithContext(ctx)
4142

43+
log.Info("starting", "version", version.Version())
44+
4245
srv, err := server.NewServer(ctx, cfgFile)
4346
if err != nil {
4447
return fmt.Errorf("srv setup: %s", err)

0 commit comments

Comments
 (0)