Skip to content

Commit

Permalink
Log version on startup (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
benbjohnson authored Apr 3, 2024
1 parent 024c261 commit e1c2d58
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/fly-autoscaler/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ func (c *ServeCommand) Close() (err error) {
}

func (c *ServeCommand) Run(ctx context.Context, args []string) (err error) {
slog.Info("fly-autoscaler",
slog.String("version", Version),
slog.String("commit", Commit))

if err := c.parseFlags(ctx, args); err != nil {
return err
}
Expand Down

0 comments on commit e1c2d58

Please sign in to comment.