Private
Public Access
1
0

Log version on startup
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-11-21 12:24:02 -08:00
parent 4d2ff44b18
commit 954d97f71d

View File

@@ -12,6 +12,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"go.ntppool.org/common/logger" "go.ntppool.org/common/logger"
"go.ntppool.org/common/version"
"go.ntppool.org/data-api/server" "go.ntppool.org/data-api/server"
"golang.org/x/sync/errgroup" "golang.org/x/sync/errgroup"
) )
@@ -39,6 +40,8 @@ func (cli *CLI) serverCLI(cmd *cobra.Command, args []string) error {
g, ctx := errgroup.WithContext(ctx) g, ctx := errgroup.WithContext(ctx)
log.Info("starting", "version", version.Version())
srv, err := server.NewServer(ctx, cfgFile) srv, err := server.NewServer(ctx, cfgFile)
if err != nil { if err != nil {
return fmt.Errorf("srv setup: %s", err) return fmt.Errorf("srv setup: %s", err)