Log version on startup
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -12,6 +12,7 @@ import (
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
"go.ntppool.org/common/logger"
|
||||
"go.ntppool.org/common/version"
|
||||
"go.ntppool.org/data-api/server"
|
||||
"golang.org/x/sync/errgroup"
|
||||
)
|
||||
@@ -39,6 +40,8 @@ func (cli *CLI) serverCLI(cmd *cobra.Command, args []string) error {
|
||||
|
||||
g, ctx := errgroup.WithContext(ctx)
|
||||
|
||||
log.Info("starting", "version", version.Version())
|
||||
|
||||
srv, err := server.NewServer(ctx, cfgFile)
|
||||
if err != nil {
|
||||
return fmt.Errorf("srv setup: %s", err)
|
||||
|
||||
Reference in New Issue
Block a user